Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-27-2014, 09:59 AM   #1
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Changing h1 text back to normal

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?
rosshalde is offline   Reply With Quote
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: 30,887
Karma: 59840450
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
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change body text from bold to normal? Michaelus Calibre 13 07-28-2022 04:42 PM
Combining Italics And Normal Text In One Line Via CSS SeaCanary Sigil 4 02-09-2014 10:36 AM
Changing text color? bizzybody ePub 2 10-23-2011 01:45 AM
Change body text font from bld to normal Jackdusty Conversion 4 03-17-2011 01:21 PM
iLiad Had me an adventure... but getting back to normal... almost. Menu Question! BNoye iRex 5 08-23-2010 09:13 PM


All times are GMT -4. The time now is 11:29 PM.


MobileRead.com is a privately owned, operated and funded community.