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

michael ensor edc at wnc.quik.co.nz
Wed Jan 25 19:11:28 CST 2006


----- Original Message ----- 
From: "misterhaan" 
Sent: Thursday, January 26, 2006 1:42 PM
Subject: Re: [thelist] unexplainable top margin in firefox, not in IE6 - very simple page.


: 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.
: -- 

As you're new to this may be a tip will help:

when designing your pages it pays to zero out browser defaults, as they are
different and the same mark up can produce different ( but legitimate ) results.

I also recommend you read up on IE bugs, it will save you hours of frustration
in the long run.

zero defaults
http://www.meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/

ie bugs
http://www.positioniseverything.net/


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/240 - Release Date: 25/01/06




More information about the thelist mailing list