
: Re: Nested menus in Mobi I've created an epub that works great. It has daily meditations, for a total of 366. In my epub, the TOC is nested, so if I want to go to October 15, I click on
The Amazon Publishing Guidelines has sample code for making a nested html TOC.
It's on page 16
<div>Section 1</div>
<div style="margin-left:2%;">Chapter 1</div>
<div style="margin-left:2%;">Chapter 2</div>
<div style="margin-left:2%;">Chapter 3</div>
<div style="margin-left:4%;">Subchapter 1</div>
<div style="margin-left:4%;">Subchapter 2</div>
<div style="margin-left:2%;">Chapter 4</div>
<div style="margin-left:4%;">Subchapter 1</div>
<div>Section 2</div>
...
Now here's an alternate way to do the same thing:
<style> div.chapter { margin-left: 1em}
div.subchapter { margin-left: 2em} </style>
<div>Section 1</div>
<div class="chapter">Chapter 1</div>
<div class="chapter">Chapter 2</div>
<div class="chapter">Chapter 3</div>
<div class="subchapter">Subchapter 1</div>
<div class="subchapter">Subchapter 2</div>
<div class="chapter">Chapter 4</div>
<div class="subchapter">Subchapter 1</div>
<div>Section 2</div> ...
I've never tried it, but I assume it will work.
Also, I found another working example for nested TOC in the book EPUB3 Best Practices by Matt Garrish and Markus Gylling. The code they used depending on very sophisticated CSS for the NAV element. I'm guessing that this is only an EPUB solution and wouldn't work for the Kindle.
FURTHER THOUGHTS: It's not mentioned in the Amazon Publishing Guidelines, but I assume that all of this html is inside the <nav epub:type="toc"> element (leading me to wonder why the elements here are all DIVs instead of LIs).
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Karen

: DRM free book shop I have just started to explore book market for English literature. I found that all of the big sellers use DRM. It's extremely inconvenient for me, as I have gotten used

: Can I implement read-aloud myself for epub 3? I wish to have an ebook where pressing the play button results in only one paragraph being played at a time. Also, the person reading the book