View Single Post
Old 11-17-2011, 10:10 AM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,682
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Can Mobi and EPub handle something like <p style='text-indent:10px;'> or padding-left:10px;?
ePub can handle that, but text-indent would only affect the first line of a paragraph (yes, each outline entry would probably only need one line, but you never know when the user increases the font size)... so it's probably better to use the margin-left style property (inline or CSS).

As for MOBI, whatever style (inline or CSS) you give a paragraph in your source (x)html needs to be translated/converted to an HTML 3.2 attribute in the finished product. MOBI is limited to a subset of HTML 3.2 and doesn't support CSS at all. So "text-indent" is translated to the "width" property:
Code:
<p width="1.0em">blah, blah, blah</p>
by calibre's or kindlegen's conversion process. The "margin-left" attribute is converted to a <blockquote> section (nested to achieve the required level of indentation).
DiapDealer is offline   Reply With Quote