View Single Post
Old 04-11-2011, 06:30 AM   #19
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by crich70 View Post
So if I understand correctly on the html page I have my cover image on I would have a set of codes that read:
<a href="#book title">book title</a>

and on each of the html pages (in the ebook) I would have:
<a id = "title">title</a>
Almost.

I believe you can't have spaces in fragment names, so instead of "#book title" use "#book_title". And you have to use the same name (minus the #) in the id, so use id="book_title".

And you can use the id in any element, not just <a>, so you can have:

<h1 id="book_title">Book Title</h1>

In the future, I'm sure Sigil will have some kind of hyperlink editor that will make all this easier.
Jellby is offline   Reply With Quote