View Single Post
Old 02-21-2011, 07:13 AM   #4
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
Quote:
Originally Posted by cybmole View Post
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
bfollowell is offline   Reply With Quote