Quote:
Originally Posted by Bas
I'v converted my book to epub in Sigil but am having difficulty with the contents TOC - still.
I'v stated to create the contents hyperlinks for chapters using:
<a name="answer_1"><p><Chapter1</p></a>
and
<a href="#answer_1">Chapter 1 in contents</a>
But the Chapter heading is an h2 and i=the html turns it into normal text, not in the centre.
Any ideas?
Shoot me down if I'm doing it the wrong way?
|
Bang!
A simple manual/Inline TOC . Style is set in the CSS: .toc_item
Code:
<blockquote>
<p><a class="toc_item" href="../Text/0743471792__p__split_1.html#Chap_1">Chapter 1</a><br />
...
Styling is set in the CSS: .chapter
Code:
<h1 class="chapter" id="calibre_chapter_1"><a id="Chap_1"></a> <b>Chapter 1</b></h1>
Note: this example uses 2 different
id, the first is used by the NCX, the other is used by the Inline (or other link)