PDA

View Full Version : List - <li> - roman-uppercase - counting-up - not possible?


Jerome
07-11-2003, 09:15 AM
Hi,

When You have an ordered list <ol> with list elements <li> inside it, the roman characters are counting up nicely, see below:

CSS:
li{
list-style-type:upper-roman;
}

HTML:
<ol>
<li start="1">SOMETHING</li>
<li start="2">SOMETHING</li>
<li start="3">SOMETHING</li>
<li start="4">SOMETHING</li>
</ol>

Now, without using <ol> , see below, I still get the roman characters but they do not count up anymore. I suppose they always need to be in an ordered list, not?

CSS:
li{
list-style-type:upper-roman;
}

HTML:
<li start="1">SOMETHING</li>
<li start="2">SOMETHING</li>
<li start="3">SOMETHING</li>
<li start="4">SOMETHING</li>

Jerome

ronaldb66
07-11-2003, 09:40 AM
A "list" by definition consists out of a ul or ol element, with 1 or more li elements inside. placing li elements outside an ul or ol element is invalid code, and therefore you get unexpected results like numbering not being updated.
By the way: the start attribute is deprecated; use CSS.

Jerome
07-12-2003, 06:15 PM
Thankx,

prettig week-end,
Jerome