IE & Firefox rendering differently

Soldato
Joined
20 Oct 2002
Posts
6,212
Location
UK
First off, im a CSS novice, so go easy on me!... How come the navigation looks right in firefox (margins and padding add up using firebug and look fine) but IE goes off on one and chucks the 4th nav button down a row?

http://mattfrost.net/fotchsa/

Would prefer not to use any IE 'hacks' if possible, hoping i've just forgotten to tell IE to behave in one way or another :p

Thanks,
 
This is the double-margin float bug. Just put display: inline; on each of the li elements and it should work. It is a hack but it doesn't have any side effects and is perfectly valid CSS.
 
Thanks Inquisitor that sorted it good and proper... :)

Is there anywhere on the web that lists common bugs for CSS like this 'double-margin float bug'?

Thanks again :)
 
Last edited:
Back
Top Bottom