Quote:
Originally Posted by HarryT
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.
|
Thanks Harry, this sounds like the problem. I've tried your fix but am having problems as my H tags contain the following:
<h1><id="toc_marker-2" class="chapterheader"><span class="Bold">Chapter 1<br/>Subheading for Chapter 1</span><span class="Bold-Italic">including these bold itals within the subtitle</span><span class="Bold"> subtitle continues in roman bold</span></h1>
I've tried switching this to:
<id="toc_marker-2"/> <class="chapterheader"><span class="Bold"><h1>Chapter 1<br/>Subheading for Chapter 1</span><span class="Bold-Italic">including these itals within the subtitle</span><span class="Bold"> subtitle continues in roman bold</h1></span>
But it won't validate. here's the error message:
Element type "id" must be followed by either attribute specifications, ">" or "/>".