View Single Post
Old 09-06-2011, 04:03 PM   #24
Ron.
Evangelist
Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.
 
Ron.'s Avatar
 
Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
Quote:
Originally Posted by DiapDealer View Post
Mobi don't have no CSS. Whatever you put in that box gets translated to html attributes.

I just did a little more investigation where I specified the "width" attribute directly in the html (instead of CSS). I increased the amount of indent for consecutive paragraphs:

1.2em
1.3em
1.4em
1.5em
1.6em
1.7em

Kindlegen maintained the different fractional "width" attributes (I checked with mobiunpack). There was no visible difference in the appearance of the paragraph indents when displayed on the Kindle. They all looked like what I would consider a 2em indent.

Must experiment more.
try this

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>indent test</title>
    <meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
  </head>
  <body>

<p style="text-indent:1em;margin-top: 0px;margin-bottom: 0px">1em indent</p>
<p style="text-indent:1.3em;margin-top: 0px;margin-bottom: 0px">1.3em indent</p>
<p style="text-indent:1.5em;margin-top: 0px;margin-bottom: 0px">1.5em indent</p>
<p style="text-indent:2em;margin-top: 0px;margin-bottom: 0px">2.0em indent</p>
</body>
</html>
Ron. is offline   Reply With Quote