View Single Post
Old 01-01-2016, 05:51 PM   #1
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,804
Karma: 6759036
Join Date: Mar 2015
Device: Kindle, iOS
EPUB>MOBI: missing text when % used for margin-top

Calibre conversions going wonky from EPUB to MOBI.

When the epub uses % for margin-top for chapter heads -- e.g., h1 {margin-top: 20%} -- blank pages are inserted at the start of the chapter, and some or all of the text inside the <h1> element goes missing. Even weirder, the first few words of the subsequent <p> go missing so that the chapter starts mid-sentence.

If I run the same epub through KindleGen, everything is fine.

If I replace % with em -- e.g., h1 {margin-top: 2em} -- everything is fine.

If it's dual-mobi, the KF8 portion is fine; only the mobi portion is affected.

I tried checking "ignore margins" in the Calibre MOBI Output prefs, but that didn't help.

Is there another setting I should look at?

Any help appreciated.

Last edited by odamizu; 01-02-2016 at 03:02 AM. Reason: clarity
odamizu is offline   Reply With Quote