Quote:
Originally Posted by cybmole
if what you say above is correct, then there's no way to add a 2 pixel line gap anyway ?
|
Yes, in Mobi parlance you'd have:
Code:
<p height="2">This paragraph has a 2 pixel space above it.</p>
(see
here). But in ePUB you need something like:
Code:
<p style="margin-top: 2px">This paragraph has a 2 pixel space above it.</p>
I guess Calibre would do the proper conversion (and if it doesn't, you can ask the developers to fix it), but I wouldn't bet about other programs.
Quote:
lets say my epub css says to leave .5 em above and .5 em below each <p tag. how is that converted to mobi ?.
|
That depends on the converter. I guess some will round up, some will round down, some will ignore, some will try to keep the fraction (and the Mobi reader will either round up, round down or ignore), and some will crash.
Why don't you try? Create a test document with dummy paragraphs and various spacings and indents, and see how it looks in the Kindle. If you want to see the code, you can "unpack" the resulting Mobi with something like MobiPerl (I don't know if Calibre allows keeping the raw pseudo-HTML in Mobi, or if it will always convert it to proper HTML+CSS)