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

More on CSS boxes (trying again)

From: Sigurd Lerstad <sigler@bredband.no>
Date: Fri, 17 Aug 2001 04:21:33 +0200
Message-ID: <002701c126c3$57118a10$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

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 Thursday, 16 August 2001 22:19:51 GMT

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