In article <bhcqoq$3dl$2$830fa7a5 (AT) news (DOT) demon.co.uk>, David Dorward wrote:
Quote:
Gilles wrote:
Can someone tell me why this doesnt works? There should be Framework
around the whole menu..
p class="info"
ul style="list-style-type:disc"
Lists can not form part of paragraphs. |
Which means that above code should work same as this:
<p class="info">
</p><ul style="list-style-type:disc">
That should be rendered exactly same as:
<ul style="list-style-type:disc">
http://www.w3.org/TR/html4/appendix/...es-line-breaks Quote:
line break immediately following a start tag must be ignored |
http://www.w3.org/TR/html4/intro/sgm...#idx-element-8 Quote:
start tag is closed by the following block element |
http://www.w3.org/TR/html4/struct/text.html#edef-P Quote:
User agents should ignore empty P elements. |
Is there any browser that gets it right?
Code in orginal post had space after <p class="info">, so it should be
rendered as
<p class="info"> </p><ul style="list-style-type:disc">
OP, if there some reason why it is not possible to have
ul { border:1px solid grey; background:#E0E0E0; padding:4px;}
use div instead of P.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.