06-28-2024, 05:09 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
Nested divs in Kindle
Hi,
I have an ebook whose index has h1, h2, and h3 levels. To create the TOC, I nested <div> elements to create the index structure. The problem is that when converting this nesting of divs to azw3 with Calibre, the Kindle doesn't recognize them and displays everything at the same level in the TOC. So I have to modify the TOC to remove the nested divs. Is it possible to create a TOC with nested divs that the Kindle will recognize when I convert it to azw3? |
06-28-2024, 08:58 AM | #2 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Why are you doing it that way?
If you start with an EPUB2, The TOC tool will create a nested NCX TOC from the H# levels in the sections. The Editor can the make an inline TOC from that. Tools:Table of Contents:inline TOC OTOH Kindles may not support very deep nesting (been awhile since I made one for my K4) |
Advert | |
|
06-29-2024, 11:18 AM | #3 |
the rook, bossing Never.
Posts: 12,352
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Really only two levels is safe on everything. Some things support 3.
But it's only some textbooks etc that really need more than 2 and it's possible to make do with 2. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Do SVGs have to be wrapped in DIVs? | what | ePub | 3 | 03-23-2021 03:40 AM |
nesting divs & spans | AlanHK | ePub | 7 | 11-20-2018 07:25 AM |
Nested NCX and the Kindle(s) | santosha | Kindle Formats | 3 | 10-16-2018 12:51 PM |
KT3: nested (or even un-nested) document collections? | milo1984 | Amazon Kindle | 1 | 12-24-2016 03:09 PM |
Pasting creates DIVS but not Paragraphs? | bitterbug | Sigil | 4 | 10-22-2010 01:42 AM |