RE: OL starting with zero

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