View Single Post
Old 04-29-2011, 01:29 PM   #6
NYCourtney
eBook Producer
NYCourtney began at the beginning.
 
NYCourtney's Avatar
 
Posts: 8
Karma: 10
Join Date: Apr 2011
Location: New York, NY
Device: All
Kovid,

I'm having a difficult time trying to figure out how my indent CSS is converted by Calibre for the Kindle. I've even run the debugging to see what it strips out and it completely takes out my third paragraph style for my third indent. I tried adding in a span class to keep it from doing this, to no avail.

It's an Index that requires tertiary entries that I'm creating. Here's the code I've been using in the ePub:

p.index1 {
font-family: "Verdana", "Geneva", "Helvetica Neue", sans-serif !important;
font-weight: bold;
font-size: 1em;
line-height: .75em;
text-indent: 0em;
text-align: left !important;
color: #000000;
margin: 0em 0em 0em 0em;
}
p.index2 {
font-family: "Verdana", "Geneva", "Helvetica Neue", sans-serif !important;
font-weight: normal;
font-size: 1em;
line-height: .75em;
text-indent: 0em;
text-align: left !important;
color: #000000;
margin: 0em 0em 0em 1em !important;
}
p.index3 {
font-family: "Verdana", "Geneva", "Helvetica Neue", sans-serif !important;
font-weight: normal;
font-size: 1em;
line-height: .75em;
text-indent: 0em;
text-align: left !important;
color: #000000;
margin: 0em 0em 0em 4em !important;
}
span.tertiary {
font-weight: normal;
text-indent: 0em;
text-align: left !important;
margin: 0em 0em 0em 4em !important;
}

This code finally forces three indent settings, but the third or "tertiary" indent still doesn't set the run over lines to the 4em margin. Only the first line hits at 4em. I've tried this combo on a matching "index3" and it didn't work either:

span.tertiary {
font-weight: normal;
text-indent: -4em;
text-align: left !important;
margin: 0em 0em 0em 4em !important;
}

Have you encountered this before? Is it a Kindle problem? I've spent over ten hours on it now. Please help if you can??? And THANK YOU so much if you can!!!
NYCourtney is offline   Reply With Quote