View Single Post
Old 08-29-2011, 06:30 AM   #16
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by virtual_ink View Post
Lastly, and very worryingly, when I use the internal TOC (the toc on a page within the text) to navigate, the headings I've used as hyperlink destinations display incorrectly.

i.e.: If I view the 'Chapter 1' heading by scrolling through the book, the heading style appears almost as I have designed it (perhaps a little larger than it does in the epub).

BUT, if I use the TOC text links to navigate to that destination, the heading style applied to 'Chapter 1' has changed! It now appears much smaller than the CSS specifies.
That means that your hyperlink is taking you somewhere inside the tags for the header. ie, you have something like:

<H1><A name="chapter_1">CHAPTER 1</A></H1>

The key thing to bear in mind with a Mobi file is that when you follow a hyperlink in a Mobi book, it renders the page from the exact point you jump to, so when you click the "Chapter 1" hyperlink, the code above will render as:

CHAPTER 1</H1>

which is of course meaningless. You need to make sure that you have something like:

<A name="chapter_1"><H1>CHAPTER 1</H1></A>

which will render correctly when you jump to the anchor.

Last edited by HarryT; 08-29-2011 at 06:34 AM.
HarryT is offline   Reply With Quote