View Single Post
Old 01-24-2011, 04:46 PM   #10
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
Quote:
Originally Posted by theducks View Post
make a no_height class in the stylesheet (code not tested)
Code:
h2.no_height {
margin: 0;
padding: 0
}
and assign
class="no_height" to those headers
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
Jabby is offline   Reply With Quote