Quote:
Originally Posted by Notjohn
I have this information in my files. Dunno who provided it. (Hitch, perhaps. "Pesky" is her sort of word.) Hope it's useful!
Hanging indents will work in both KF6 an KF8 if you use a media
query in CSS something like:
@media amzn-kf8
{
p.hang { text-indent:-36; margin-left:36;}
}
and use the following code in the body of the HTML file:
<p class="hang" width="-36">Your text here.</p>
The negative text-indent works in CSS for Kindle 2 (and later KF6
devices) but only without the margin-left attribute. With
Amazon's latest epublishing tools this coding produces cut-off
text in KF8 (you need that pesky margin-left).
|
That's wrong. You do not need to add width=36 to the HTML. You should never add CSS code to the HTML. Put the code in CSS and use the CSS classes.