View Single Post
Old 12-10-2016, 12:16 AM   #6
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
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).
I agree that pesky is my kind of word, but, I never have used the KF6 appellation. (Even though it was technically correct).

I do recall that for a while--and this was a while ago--we had to do exactly what you have there, but we've never used something like -36, either. We've used ems and/or percentages for dog's years...at least since '09. So...I'm going to say that's from Charlie. (Who did use KF6 as his term.) That's my guess.

We did have to set the margin offset, because there was a problem with...hmmm...Fires? Some of the readers, if you weren't careful with the offset, would literally have that first line of text running off the page on the left-hand margin. Nasty. But, man, that's been a WHILE. I don't remember it that clearly, now.

@Thirsty? Do you still need hanging indent css? I can dig ours up and get that to you, if you do?

Hitch
Hitch is offline   Reply With Quote