Want to have ordered lists in HTML5 / CSS with right brackets / parentheses (
a)) instead of dot (
a.)? Yes, it is possible. I found a really hacky, neat solution to get it.
And… there are only few small obstacles, you have to learn to live on with.
The solution can be found at Stack Overflow (of course!) and basically narrows to use following CSS code:
ol > li
ol > li:before
content: counter(list, lower-alpha) ") ";
When using it keep, in mind that:
First problem. This isn’t 100% real numbering. You can see the difference on multi-line items. In normal lists (using standard bullets or numbers) each line has the same indent, so bullet or number looks like standing before block of text.
With above solution, each next line starts below numbering and isn’t slightly inset.
Second problem. This fails completely on multi-level lists. If you have construction like this:
<ol class="params-list" type="a">
Then… sorry folks, that won’t work.