View Single Post
Old 10-27-2014, 10:48 AM   #2
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,079
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 rosshalde View Post
Hello,

I had a nice epub with chapter headings all linked to the TOC and viewed nicely on a reader. I decided to replace one of the chapter titles with a picture and have the former chapter title be normal text underneath (just like the rest of the chapter)

I inserted the picture as directed by sigil
How can I use an image for a Chapter heading in the TOC?

Insert your image where you want it – it will look something like this in Code View:

<img src="../Images/myimage.png" />
Add the heading tag you want to use for the image and give it a title to display in the TOC, e.g.

<h1 title="CHAPTER 1"><img src="../Images/myimage.png" /></h1>
The TOC will now have an entry called "CHAPTER 1" which links to your image.

I then took the old chapter title that was labeled h1 and changed it to plain old ,<p>. The effect on chapters worked. The pic is at the top and the former chapter is now inside the same "chapter" as the pic, rather than its own chapter.
the problem is it is still formatted with bigger/bolder letters. How do I tell it to make the font match everything else?
your old .chapter style applies when you changed the h1 to p

A quick and dirty: in the stylesheet
change .chapter to h1.chapter

now it only applies to a h1 with a class="chapter"
theducks is offline   Reply With Quote