W3C home > Mailing lists > Public > www-style@w3.org > March 2002

RE: OL starting with zero

From: Lindsay Evans <lindsay@redsquare.com.au>
Date: Tue, 26 Mar 2002 14:12:05 +1100
To: <www-style@w3.org>
Message-ID: <NEBBKJCHLKELHFDMNAHNGEOMGDAA.lindsay@redsquare.com.au>


> At 2:44 AM +0100 3/26/02, Christoph P”per wrote:
> >  > Might I suggest an extra list-style-type, say "code"
> >>  which is equivalent to "decimal" but starts with zero?
> >
> >You mean decimal-leading-zero?
>
> No, I think he means one where the first element is numbered
> zero instead of one. E.g.:

isn't this what counter-reset[1] is for?

ie.

OL {
	counter-reset: item -1;
}

LI:before {
	content: counter(item) ". ";
	counter-increment: item;
}

1: http://www.w3.org/TR/REC-CSS2/generate.html#counters

--
 Lindsay Evans.
 Developer,
 Red Square Productions.

 [p] 8596.4000
 [f] 8596.4001
 [w] www.redsquare.com.au
Received on Monday, 25 March 2002 22:09:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:13 GMT