Quote:
Originally Posted by Jabby
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