View Single Post
Old 08-17-2012, 05:17 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: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
IMHO your process is backwards
Calibre makes a rough(er) first pass EPUB from an external format

Then you polish the EPUB with Sigil.


For normal (indented) paragraphs, you need this line in the CSS (class) selector: Calibre does not always use the same selector name... Look at the paragraph in question.
Code:
<p class="calibre5">...
remember the green part

Now in the CSS, find (dot).calibre5 {
add or change the line: (pay attention to the trailing semi-colon. all lines, except the last, must have a semicolon. the last line one optional)
Code:
text-indent: 1.5em;
For bullet lists (we will NOT use HTML lists as they can be a pain), things get tricky:
Make a new class selector in the CSS. I will use .bullet
Code:
/* a hanging indent used for lists */
.bullet {
   display: block;
    margin-bottom: 0;
    margin-left: 4.5em;
    margin-right: 0;
    margin-top: .5em;
    text-indent: -1.5em;
    }
.nobullet { /* use for additional paragraphs of a bullet item */
   display: block;
    margin-bottom: 0;
    margin-left: 4.5em;
    margin-right: 0;
    margin-top: .5em;
    text-indent: 0;
    }
adjust the left margin and text-indent values/ratio to taste

warning: This might not survive conversion to MOBI
theducks is offline   Reply With Quote