View Single Post
Old 06-13-2014, 04:55 AM   #1
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,060
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
CSS: margin-top and margin

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?
Leonatus is offline   Reply With Quote