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

Lachlan Hunt lachlan.hunt at lachy.id.au
Thu Apr 7 09:07:12 PDT 2005


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




More information about the whatwg mailing list