View Single Post
Old 09-24-2010, 10:36 AM   #5
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,094
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 droople View Post
Thank you theducks.

Calibre is really a big headache for me.

It's the code for the title

<p class="calibre2"><span class="calibre3 italic bold calibre4">The</span> <span class="calibre3 bold calibre4">Year</span> <span class="calibre3 italic bold calibre4">of</span> <span class="calibre3 bold calibre4">Living Biblically</span></p>

I really want to build the file from scratch......
OMG what a mess of styles (even without seeing the stylesheet(s).. A MUST to see what each selector is calling for.)

Code:
 /* in the stylesheet. VERY SIMPLE */
h1.chapter {
display: block;
font-size: 150%
font-weight: bold;
font-style: normal;
text-align: center;
margin-top: 1em;
margin-bottom: 2em;
}

h1.chapteritalic { /*assume that this adds/changes an additional property of the enclosing selector */
font-style: italic;
}


/* in the document */

<h1 class="chapter"><span class="chapteritalic">The </span> Year <span class="chapteritalic">of</span>  Living Biblically</h1>
This way you get a 1st level TOC entry automagically with Sigil

The ability to tune the look and feel (size, stroke, position), from a single place, the style sheet
theducks is offline   Reply With Quote