View Single Post
Old 01-23-2010, 05:26 PM   #161
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,044
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by zelda_pinwheel View Post
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.
JSWolf is offline   Reply With Quote