View Full Version : Epub and negative indentation


Nate the great
04-27-2009, 12:37 AM
Reference books and dictionaries have negative indentation, i.e. a word in a dictionary sticks out to the left of its definition. I know that in Mobipocket negative indentation can done with: <p width="-X"> . How do I do it in Epub?

I will be posting the cleaned up HTML source files of the various things I download. Given that some of the titles will have over a thousand files, I think it would be best to have it set up properly before I give it to you.

HarryT
04-27-2009, 04:23 AM
It's called a "hanging indent". This should work:

<p style="margin-left:1cm;text-indent:-1cm">

Adjust values to suit.

Jellby
04-27-2009, 07:02 AM
Yep, margins and text-indent can be negative, not padding, though.

Nate the great
04-27-2009, 08:03 AM
Thanks.

Will the hanging indentation work in LRF?

HarryT
04-27-2009, 08:13 AM
I don't know. Try it and see!

JSWolf
04-27-2009, 11:44 AM
I think it does work in Calibre.

Peter Sorotokin
04-27-2009, 12:48 PM
It's called a "hanging indent". This should work:

<p style="margin-left:1cm;text-indent:-1cm">

Adjust values to suit.

Yep, this should work. I'd just use em units instead of cm.