View Single Post
Old 04-14-2012, 08:03 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: 31,100
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 gogreen View Post
Please could someone tell me how to reomve the blank line between paragraphs in book view in Sigil. I hope this will just involve clicking a box rather than some complicated codeing issue .

Regards
Not possible in the GUI (BV).

That is probably a Paragraph (top or botom) MARGIN issue.

It is only complicated because you won't try to understand the basics (there ARE really other complicated issues that require detective work to unravel style nesting)

Open the book, click the cursor (to set the insertion point) on a paragraph with this problem, above AND below.
Now switch to Code view. (don't click anything yet).
If you see a simple P tag, you are looking for a generic P style:
Code:
<p>words here.</p>
Then the style sheet could have (note the p has no dot in front)
Code:
p {
    border-bottom: 0;
    border-top: 0;
    display: block;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    padding-bottom: 0;
    padding-top: 0
    }
This style controls that paragraph, change the Red value to a simple 0

The same theory applies for:
Code:
<p class=calibre5">words here.</p>
Except this time you are looking for the style (note the leading dot) :
Code:
.calibre5 {
    border-bottom: 0;
    border-top: 0;
    display: block;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    padding-bottom: 0;
    padding-top: 0
}
The curly brackets are the boundaries of the style definition.

CSS is simple once you realize that you can control the entire book from one place with a few changes, instead of painfully editing each page or paragraph.
theducks is offline   Reply With Quote