![]() |
#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? ![]() |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,273
Karma: 57979022
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 | |
|
![]() |
#3 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,236
Karma: 89531599
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Do SVGs have to be wrapped in DIVs? | what | ePub | 3 | 03-23-2021 02:40 AM |
nesting divs & spans | AlanHK | ePub | 7 | 11-20-2018 06:25 AM |
Nested NCX and the Kindle(s) | santosha | Kindle Formats | 3 | 10-16-2018 11:51 AM |
KT3: nested (or even un-nested) document collections? | milo1984 | Amazon Kindle | 1 | 12-24-2016 02:09 PM |
Pasting creates DIVS but not Paragraphs? | bitterbug | Sigil | 4 | 10-22-2010 12:42 AM |