Starting a list at zero

M

Michael Wilcox

How would I make a list (<ol>, <li>) that starts at zero and not one? I'm no
good with the CSS autonumbering stuff.
 
J

Jukka K. Korpela

Michael Wilcox said:
How would I make a list (<ol>, <li>) that starts at zero and not one?

<ol start="0">, or <li value="0"> in the first <li> element. But some old
browsers don't get it right but start at 1 anyway. To stay on the really
safe side, make the numbering part of the <li> element contents, and use
I'm no good with the CSS autonumbering stuff.

Neither are most of us, but the worst thing is that major browsers like IE
haven't implemented it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top