W3C home > Mailing lists > Public > www-style@w3.org > July 2003

Re: Width of an absolute positioned element

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Tue, 22 Jul 2003 14:45:47 -0400
To: chris@christophm.de
CC: www-style@w3.org
Message-ID: <1058899547.9868d740cmoschini@myrealbox.com>

> From: "Christoph A. Mueller" <chris@christophm.de>
> But I would like to know, which browser behaviour is
> defined in the css standard?

I believe Mozilla's is "more correct," but the spec is iffy.

Consider that in any of those browsers, absolutely positioning Element B inside Element A and setting B's width to 100% causes it to be 100% of the width of A. This is not influenced by padding or margin, because both lie outside A's dimensions.

However, in IE the Body tag's margin does change this width. Is this correct? Should the body tag be defined as having width/height inset from the window by margin? If not, does margin have no meaning?

Certainly Opera's implementation in which padding, not margin, insets the Body tag, is least correct.

Presumably these sorts of vagueties are what Tantek is talking about fixing for CSS2.1.

-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/
Received on Tuesday, 22 July 2003 14:45:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:22 GMT