View Single Post
Old 12-07-2011, 08:38 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,095
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Tango Mike View Post
the ducks: I'm sort of guessing about this, but here's what I think you're asking for:

</style>
</head>

<body class="sgc-21" xml:lang="EN-US" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<div class="Section1">
<p class="Ebook">&nbsp;</p>

<p class="TOC sgc-8">TABLE OF CONTENTS</p>

and

</style>
</head>

<body class="sgc-21" xml:lang="EN-US" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<div class="Section1">
<h1 id="heading_id_2"><a id="CHAPTERONE"></a><a href="../Text/Section0004.xhtml#TABLEOFCONTENTS">CHAPTER ONE</a></h1>
OK we have a part winner

the Red above is saying look in file Section0004.xhtml for a anchor named TABLEOFCONTENTS
if section0004 is ONLY the TOC, you do not need to reference the anchor. the link will go to the beginning.

if the TOC is located somewhere else you need an anchor
Code:
<a id="TABLEOFCONTENTS"> (whatever)</a>
The first paste only had the title header (assuming the file had the correct name 'Section0004.xhtml') (I think I got that right )
theducks is offline   Reply With Quote