View Single Post
Old 01-24-2012, 09:43 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,106
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Bas View Post
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)

Last edited by theducks; 01-24-2012 at 09:52 AM. Reason: typo
theducks is offline   Reply With Quote