Previous Message
Next Message

body: margin=0 and padding=0, not working in Firefox or Opera

Sent by Gunlaug_Sørtun on 19 March 2006 03:03


SED wrote:
> I'm trying to locate the page body to x=0, y=0. It's ok in IE6 but
> when I view it in Opera or Firefox I get one empty line before the
> content. Why?

Difficult to base anything on that sample-code (and I think most
browsers would like to see the stylesheet link inside the head-element).

A link to the actual page would be nice.

A guess would be that Opera and Firefox are following CSS standards, and
that what you see is the effect of 'Collapsing margins'[1]. That is
probably the case if you only see 'one empty line' above the content and
not at the sides.

regards
	Georg

[1]http://www.w3.org/TR/CSS21/box.html#collapsing-margins
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: