Quote:
Originally Posted by zelda_pinwheel
just a note, as i just mentioned in the sigil forum, it's not a good idea to use ems as a unit of measurement for margins. ems are a proportional unit, equal to the width of the letter "m" in the font size in use (when ems are used to define font size, 1em is equal to about 16pt). this means that if you increase the font size, the margins will also be increased, leaving less room for text. instead, you should use either percentage (also proportional, but based on the size of the display) or pixels. so the code could look like this :
@page {margin : 15%;}
or
@page {margin : 20px;}
defining a global "margin" as i did above sets the same margin on all 4 sides. you can refine this with a different margin for top/bottom vs. sides by specifying two measures :
@page {margin : 20px 10%;}
= 20px for top and bottom, 10% for right and left.
or specify a different margin for each side like jon did in his example.
|
I'm not a fan of % for margins or indent. Mobipocket eBooks tend to use 5% for an indent and that's way too large. I have been using 1.1em as an indent since after I'm done editing an eBook, I leave it on small. But I probably should figure out a good pt value to use as an indent.