View Single Post
Old 11-03-2015, 09:55 AM   #1
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
How to make text single space, but still wrap to reader screen

Sigil 0.8.7

Sometimes I have some email or usenet headers in my document, and I want to make those headers single spaced. They currently have a blank line between them because each line is surrounded by <p> and </p> tags. How do I make them single spaced?

These headers should not be separated from the rest of the message by <code> tags.

Thank you!

EDIT: Got it. I used this CSS:
Code:
.singlespace {
margin-top: 0px;
margin-bottom: 0px;
}
And this xhtml in my EPUB:
Code:
<p class="singlespace">line one</p>
<p class="singlespace">Line two</p>

Last edited by crankypants; 11-03-2015 at 09:59 AM.
crankypants is offline   Reply With Quote