Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Starting a list at zero (http://www.velocityreviews.com/forums/t154494-starting-a-list-at-zero.html)

Michael Wilcox 08-16-2003 03:55 AM

Starting a list at zero
 
How would I make a list (<ol>, <li>) that starts at zero and not one? I'm no
good with the CSS autonumbering stuff.
--
Michael Wilcox
Essential Tools for the Web Developer - http://mikewilcox.t35.com
mjwilco at yahoo dot com



Jukka K. Korpela 08-16-2003 06:22 AM

Re: Starting a list at zero
 
"Michael Wilcox" <mjwilcoCANTHAVESPAM@yahoo.com> wrote:

> 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
<ul> together with list-style: none in CSS.

> 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.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




All times are GMT. The time now is 08:43 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57