Thread: Paragraph Break
View Single Post
Old 05-02-2013, 10:35 AM   #8
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,222
Karma: 317184274
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Paxman53 View Post
Thanks for your help.

Tried it in Sigil it created a space above, but also below, plus there was no indent.
Subsequent conversion by Calibre with remove spacing between paras in Look & Feel unchecked, changed the style sheet to:

.gapabove {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
top-margin: 1.5em
}

Changed margin-bottom to 0em which removed bottom space, but indent still unchanged.

What I really want is an instruction I can insert between lines to create a space, that Calibre will not affect in subsequent conversions.
Sorry, I should have written margin-top. There's no top-margin CSS instruction.

try

.gapabove {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 1.5em;
text-indent: 1em;
}

(or whatever value you usually use for text-indent.)
pdurrant is offline   Reply With Quote