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