W3C home > Mailing lists > Public > www-style@w3.org > April 2001

Re: Block-level formatting and width in Netscape 6

From: Clover Andrew <aclover@1value.com>
Date: Wed, 18 Apr 2001 16:20:26 +0200
Message-ID: <D58B0195B58937489E89124469E57CA20D4FBA@EX1.1value.com>
To: <www-style@w3.org>
Philip Hoyt <phoyt@mspect.com> wrote:

>> The sum of these seven is always equal to the 'width' of the parent
>> element.

> Does this mean that it is proper for a block element to always scroll
> or crop an amount equal to the padding inside the width of the parent
> element?

No, because the 'width' of the parent *is* the same as the width
available to its child element. The parent's padding is *not* included
in the parent's width.

(Except in IE/Win, but that's a bug, and it's fixed in the latest IE6
build. This issue has been discussed a lot recently, see for example
http://www.alistapart.com/stories/journey/4.html .)

> Since Netscape 6 and Mozilla both scroll the distance of the combined
> border and margin(*) of a div of width 100% this must be a formatting
> bug.

(* and padding)

This behaviour is correct, although admittedly often somewhat

Andrew Clover
Technical Consultant
Received on Wednesday, 18 April 2001 10:29:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC