View Single Post
Old 12-07-2016, 06:57 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,114
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Notjohn View Post
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.
JSWolf is offline   Reply With Quote