Re: Width of an absolute positioned element

> 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 UTC