Quote:
Originally Posted by Hitch
Nah, unneeded if this is ePUB2. Isn't and hasn't been supported since the jump. Can't restart a list (with a starting # other than 1, that is) successfully, to the best of my knowledge.
|
Yep, for more detailed discussion on <ol> and why you should avoid it in ebooks, see:
Much better to change this:
Code:
<ol start="7">This is an example.</ol>
and "bake the number" into the paragraph itself:
Code:
<p class="list">7. This is an example.</p>
This will make sure any device will be displaying it correctly.
Sad that that's the reality (because it stinks for Accessibility), but that's the only way to:
- reliably handle non-starting-from-1 lists.
- appear the same on all devices.
- handle complicated numbering + symbol schemes.
- Like Roman Numerals, Greek Letters, Indic, etc.
Quote:
Originally Posted by Jellby
... meaning it might be supported by some reader, but it's not in the required set for ePub2 (and it's probably illegal in XHTML), so you can't rely on it.
|

And, in EPUB3 and HTML5+CSS3, you can do a lot more stuff... but again, many devices won't show this, so you have to settle for least common denominator.
If you were making a website though... yes, you could use lots of fancy
<ol> +
list-style-type +
CSS3 Counters code.
But since we're doing ebooks, we most likely have to settle for hardcoded numbers in the text!