View Full Version : Nav bar problem

03-04-2010, 04:58 PM
I`m making a site with divs

my head navigation bar - <ul id="main_nav" > is laid out perfect in firefox and crome, but in IE - it has an indent, I`ve spent countless hours trying to fix this.


03-04-2010, 05:27 PM
Did you remove the margins from the UL? Possibly padding, hard to guess.

03-04-2010, 05:43 PM
Oh my gaawwwwwww

r u serious?!
your telling me i could have posted that 3 months ago and been done with this problem.
I cannot believe i missed that.

Thanks man, all fixed.

03-04-2010, 06:34 PM
lol :)

Yeah, totally serious, if that in fact was the problem..

Remember that all HTML elements have some default padding and margins.
Sometimes those are zero, but for some of the usual ones, <p>, <form>, <ul>, they are not.

03-04-2010, 08:11 PM
Which is why some people use a CSS reset like this one: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/