[thelist] unexplainable top margin in firefox, not in IE6 - very simple page.

misterhaan misterhaan at track7.org
Wed Jan 25 18:42:22 CST 2006


Trevor wrote:
> The problem is that firefox seems to INVENT a top margin??? - between the top of the page and the header?   I can't understand 
> it and it's driving me a bit crazy!
you've placed your <img> inside a <p>, which has a margin that you 
didn't get rid of.  adding p {margin: 0;} gets rid of it.  I'm guessing 
IE is collapsing the margin from your <p> with the <body> and firefox isn't.



More information about the thelist mailing list