Reputation: 35
Is it possible to lose the dot when using "list-style-type:decimal-leading-zero;"
I found a solution to lose the dot, but then I can't add the leading zero.
ol {
counter-reset: item;
list-style-type: decimal-leading-zero;
}
li { display: block; }
li:before {
content: counter(item) " ";
counter-increment: item
}
Upvotes: 3
Views: 7756
Reputation: 2783
You can set the list-style-type for the counter:
ol {
counter-reset: item;
list-style-type: none;
}
li { display: block; }
li:before {
content: counter(item, decimal-leading-zero) " ";
counter-increment: item;
}
Upvotes: 11