The other minute I’ve read an interesting
article on the new
reversed attribute on ordered lists, that, who would have
However, I thought, that this should be possible with CSS counters alone, and lo, it works:
<ol style="counter-reset: c 6">
and this CSS snippet:
counter-increment: c -1;
content: counter(c) ". ";
É voila, the reverse ordered list is ready. And it uses only minimal extra markup in the form of a style attribute.
If you want to see it in action, I’ve put the example on JSFiddle.