View Single Post
Old 02-20-2012, 07:42 AM   #5
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 982
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by Toxaris View Post
There aren't any in the current CSS specs, so also not in the ePUB specs.
You're right, but you could simulate it using a style for each list item:

Code:
ol { list-style-type: none; }
li.one:before { content: "One: "; }
li.two:before { content: "Two: "; }

<ol>
  <li class="one">Hello</li>
  <li class="two">Hello</li>
</ol>
etc.

That would be really tedious to maintain in anything apart from a trivial test document.

You could do it using CSS counters as well, but they are not widely supported.
chrisridd is offline   Reply With Quote