Thread: TOC Formating
View Single Post
Old 01-27-2014, 07:48 PM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by tarisea View Post
Hi. I'm having fun with Sigil and am just amazed at what it can do. I have run into a problem with the TOC and of course with the html generated TOC.

I have 2 headings.

<h4> is the word "Book" and the book number e.g. Book 1 or Book 2 & 2.5
<h3> is the book title

The TOC to shows the two headings but they are on 2 different lines which makes the TOC very confusing.

Is there any way to get the TOC to show:

<h4> <h3>


Thank you in advance for your help.
One way is to give the h3, h4 selectors the "display: inline" property. In your css stylesheet write the following:

Code:
h3, h4 {
   display: inline;
}
Of course, you could give to the h3, h4 selectors others properties to distinguish them. Below I attach a simpe epub with the two headers inlined.

Regards
Rubén
Attached Files
File Type: epub Inline headers.epub (2.0 KB, 192 views)
RbnJrg is offline   Reply With Quote