Quote:
Originally Posted by virtual_ink
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.