Quote:
Originally Posted by cybmole
I have a couple of books where the chapters headers, though marked up ok with <h tags , are just images - no text.
what do other folks do to get a workable TOC in such cases ?
I felt sure there'd be threads on this but my search said not :-(
my quick fix was to add 1 character of text e.g.. <h ....img .....>-</h which gave me visible "-" entries in the TOC and did not greatly disturb the book layout.
are there alternative / better solutions ?
|
As part of the hx tag, add title and then whatever text you want displayed in the toc.
For example, if the image is of some big, fancy script that says, "Big Fancy Script Chapter Header", you'd add that as your title.
<h1 class="chapterheaderclass" title="Big Fancy Script Chapter Header">
This would give you your image as that chapter header and the text within the title attribute will display in toc.
This is also useful for books where the chapter header is all caps, like "CHAPTER ONE", but you'd rather have the toc display something like "Chapter One".
I believe this is what you were asking for and I hope it helps.
Sincerely,
- Byron