View Single Post
Old 01-20-2019, 02:07 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,960
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jhowell View Post
I did some playing around with this, adding the style "line-height: 2.5em" to a <br> element. I used the Kindle Previewer to convert the book in order to avoid any issues that may be introduced by calibre conversion.

In the MOBI portion of the Master MOBI created by the Previewer, the style is simply eliminated from the <br>.

In the KF8 (azw3) the style is left intact, but is ignored by the renderer when displaying the book.

In the KFX (enhanced typesetting) view created by the Previewer the line-height was retained, but applied to the line above the break, causing there to be two gaps in the paragraph. This reflects how most modern Kindle devices and apps would display that markup in a book sold on Amazon.

I recommend just using multiple <br> elements and living with the restriction of having only integral sizes available.
I disagree with double <br/>. Go with the code I posted in message #4 of this thread. It does work ePub, KF8, KFX, and should work for Mobi.

However, if this is a section break, you can try a padding-top instead of a margin-top. I know this works better with ePub. I don't know what it would do in Mobi. But KF8 should works and KFX, I am unsure.
JSWolf is offline   Reply With Quote