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

More on CSS Boxes

From: Sigurd Lerstad <sigler@bredband.no>
Date: Tue, 14 Aug 2001 17:16:32 +0200
Message-ID: <001201c124d4$1baaf560$4b0473d5@NYMASKIN>
To: <www-style@w3.org>
From the spec

Block-level elements generate a principal block box that only contains block
boxes. The principal block box establishes the containing block for
descendant boxes and generated content and is also the box involved in any
positioning scheme. Principal block boxes participate in a block formatting
context


The first sentence

Block-level elements generate a principal block box that only contains block
boxes

that doesn't make sense to me

I understand that html like

<p>
Some text<b>bold</b>
</p>

<p> is a block level element (correct?)

But since it only contains inline elements, shouldn't the child boxes of <p>
be line boxes? (line formatting context)
but the spec says that <p> should only contain block boxes since it's a
block level element??

--
Sigurd Lerstad
Received on Tuesday, 14 August 2001 11:15:08 GMT

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