Quote:
Originally Posted by droople
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