W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] <p> elements containing other block-level elements

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 08 Apr 2005 02:07:12 +1000
Message-ID: <42555AB0.5070904@lachy.id.au>
Anne van Kesteren wrote:
> Ian Hickson wrote:
>>   <p>
>>    ...
>>    <ol>
>>     <li>...</li>
>>    </ol>
>>   </p>
> 
> If OL is an inline element here, sure.

Whether or not it is rendered as block or inline within paragraphs can 
be quite easily handled with CSS.  Lists should not be classified as 
block level or inline level elements within the spec.

ol, ul { display: block }
li { display: list-item; }
p ol, p ul, p li { display: inline }

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Thursday, 7 April 2005 09:07:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC