On Mon, 20 Jun 2005 22:05:10 +0200, Rick Pasotto <[EMAIL PROTECTED]> wrote:

<http://niof.net/lpnc/tst>

Where does the blank space after the top horizontal navbar and the main
body come from? It's there only in Mozilla/Firefox but not in IE.

I've got 'html,body {margin:0; padding:0}'.

I've tried adding margin:0 everywhere that seems relevant.

But not right element. I tried
* {margin 0 !important;}
In user stylesheet, and it goes away. This fixes it:
#content > *:first-child {margin-top:0;}

What silly thing have I overlooked?

Margin collapsing.
(rule of thumb: if there is unwanted whitespace in CSS layout, it is collapsed margin.)

Also, is it correct that IE doesn't recognize:

#footer hr + p {
    font-style: italic;
}

IE doesn't support + selector. I don't know if it recognizes it.

--
Lauri Raittila <http://www.iki.fi/lr>
@Utrecht, NL
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to