Quote:
Originally Posted by Leonatus
At formatting the <p> in the css of an epub in Sigil, I wished to create a certain distance between single paragraphs. Thus, I added
margin-top: 2em;
O.k. it worked. Only that I found that 2em is a little too much. So I changed the margin-top to 1em, and, surprise: nothing changed, though trying several times. The space between the paragraphs could not be manipulated anymore.
Then, I looked in other epubs; in one of them, I found, instead of margin-top, simply:
margin: 1 0;
I adapted this to my ebook, and, hoops, the margin changed. Could somebody, please, explain to me what has happened, and what has been my mistake?
|
What I've seen used in some ePub is the following CSS code...
Code:
p {
margin-top: .3em;
margin-bottom: .3em
}
1em is still too large. Anything above .3em is too large (IMHO).
But personally, I'd change the .3em to 0 so there's no paragraph spaces. I'm not a fan of them.