View Single Post
Old 04-21-2012, 08:07 AM   #1
backwoodsman
Junior Member
backwoodsman began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2012
Device: kindle 3
hanging indents alignment on Kindle

I am trying to align the left margin of a hanging indent with the continuation paragraph which has no indent. This works in the epub, but the converted file in mobi format on the kindle 3 gives a different indentation when the hanging indent is absent.

For example
Code:
p.lm1 {
  margin-left: 50px;
}
p.hlm1 {
margin-left: 50px;
text-indent: -50px;
}
gives a much greater left margin for "lm1" than for "hlm1", so they do not line through. The same thing occurs regardless of whether the left margin is defined in %, ems, or px. How can the converted left margin be controlled in calibre?

ADDITIONAL: I see that calibre renders the paragraphs without the hanging indent as blockquotes, measured in pixels (seemingly arbitrary numbers of pixels too), whereas the hanging indent paragraphs are rendered with text-indent and margin-left, measured in points. Unsurprisingly, the two rarely give the same value. Surely a bug?

Last edited by backwoodsman; 04-21-2012 at 09:58 AM. Reason: new information
backwoodsman is offline   Reply With Quote