View Single Post
Old 08-30-2011, 10:37 AM   #31
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,997
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by virtual_ink View Post
Thanks JSWolf. I think that would work - however, I actually posted code from the wrong file! For the record, here's what I should have posted, and it works.

Original code:
<h2 id="toc_marker-6" class="sectiontitle"><span class="Bold"><a id="Contributors"/>Contributors</span></h2>

Edited code:
<a id="Contributors"/><h2 id="toc_marker-6" class="sectiontitle"><span class="Bold">Contributors</span></h2>

This validates, and works in Kindle (with no lost H tags!). Thanks all for your help.
The original code should work perfectly well. You don't actually need to change it. The problem is the that your ToC is jumping ot the wrong ID. You need to jump to toc_marker-6 instead of Contributors. If you fix sort of error this in the ToC links, then all will work fine. Putting the <a> first is just ugly code.
JSWolf is offline   Reply With Quote