Re: Block-level formatting and width in Netscape 6

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
inconvenient.

-- 
Andrew Clover
Technical Consultant
1VALUE.com AG

Received on Wednesday, 18 April 2001 10:29:20 UTC