View Single Post
Old 01-24-2011, 09:13 PM   #11
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,121
Karma: 60406498
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 Jabby View Post
That worked although "padding: 0" wasn't needed. But another strange thing happened.

When I converted the text file to epub there was a class=calibre that I think Sigil, at some point, inserted in its normal <body style="">. When that statement was missing I got the "almost" to the top. The active statement was "margin-top:0".

Life is confusing. Just when I think I'm getting things sorted out this happens. Why does a "margin:0", which I did not know existed until you told me, be dependent on an earlier "margin-top:0" to function. BTW, neither can be omitted nor can they be exchanged. Go figure!

Regards - John
Margin: 0 is a shorthand for All margins (top,right,bottom,left) to the same value (in this case 0), otherwise, you may need to set either/and Margin-bottom and margin-top
theducks is offline   Reply With Quote