list-style-type: decimal-leading-zero;
Doh!
]]>OK, the numbers are removed after the comment is posted. On my PS above, I meant typing ordered lists in Markdown on the comments. Cheers.
1. one
2. two
...
10. ten
11. eleven
]]>counter-reset
and this useful nth-child
tip, I was able to make double digit ordered lists.
With something along these lines…
ol {
counter-reset: li;
}
ol > li::before {
content: counter(li);
counter-increment: li;
margin-right: 10px;
line-height: 0;
}
ol > li:nth-child(-n+9)::before { /* 1 - 9 */
content: "0" counter(li); /* becomes 01 - 09 */
}
I get the output:
01 one
02 two
03 three
04 four
05 five
06 six
07 seven
08 eight
09 nine
10 ten
PS: Chris, you need to fix the padding on your ordered lists (gets cut off starting with double digits):
one
two
three
four
five
six
seven
eight
nine
ten
eleven
twelve
thirtheen