02-18-2012, 12:54 PM | #1 |
Berti
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
XHTML: Attributes "start" at <ol> and "value" at <li>
These attributes are deprecated within xhtml.
But how can I do it without violation of the yhtml standard ? Is there any css equivalent ?? |
02-18-2012, 02:58 PM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
No, unfortunately not. These attributes are not supported in the ePUB specifications and will not work on most readers.
|
02-18-2012, 05:25 PM | #3 |
Berti
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
|
02-19-2012, 03:59 AM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
There aren't any in the current CSS specs, so also not in the ePUB specs.
|
02-20-2012, 07:42 AM | #5 | |
Guru
Posts: 927
Karma: 2143512
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
|
Quote:
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> 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. |
|
02-20-2012, 01:34 PM | #6 | |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Must not be used within a style sheet whose @media value is other than aural. I'm not sure why, though. |
|
02-20-2012, 02:03 PM | #7 |
Guru
Posts: 927
Karma: 2143512
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
|
That's a bit bizarre. They add a custom way of doing columns that no HTML/CSS rendering engine supports, and then prevent the use of something that works. Hm.
|
02-20-2012, 02:07 PM | #8 | |
Berti
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
Btw. the book, i'm thinking about has 400 List entries, the first Chapter-Break is after no. 67. @Jellby: the "ePub spec" ?? sounds that there's something i should read. If possible, can you give me a link? Yes I know, Google ... but it's always bettet to get a tip to a good source of information. |
|
02-20-2012, 02:12 PM | #9 | ||
Guru
Posts: 927
Karma: 2143512
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
|
Quote:
Quote:
|
||
02-23-2012, 11:03 AM | #10 |
Enthusiast
Posts: 29
Karma: 22
Join Date: Oct 2010
Location: London
Device: Kindle, iPad, iPhone 4, HTC Desire
|
Kindle and iBooks will display ol/li ul/li without any major issues if you don't add classes.
The only issue you might get into would be with nested list, it's best to take these as they come. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
SONY pocket edition: "Device locked" + "charge battery" obstacles? | hermes | Devices | 3 | 06-02-2011 03:32 AM |
Woher bekomme ich "Infinite Jest" oder "Unendlicher Spaß" von David Foster Wallace? | bitschnau | Erste Hilfe | 3 | 11-01-2010 01:22 PM |