Quote:
Originally Posted by zelda_pinwheel
it's better therefore either to use percentage (which is proportional as well, but to the size of the display) for example :
body {margin : 15%;}
or
@page {margin : 15%;}
or use pixels (this is a fixed unit and will not vary proportionally), for instance
body {margin : 20px;}
or
@page {margin : 20px;}
|
I wouldn't recommend using pixels. That's because the margin the user sees now depends on the resolution of the display. Set a 20px margin, and on a 72dpi screen display the margin will be just over 1/4 inch. On a 166dpi eInk screen they'll be just under 1/8 inch. On a 200dpi eInk screen they'll be 1/10 inch. And on some future 600dpi display they'll be just 1/30 inch.
It's better to use a percentage, but my preference is to use an absolute size unit, like points (pt - 1/72 inch), picas (pc - 1/12 inch), mm, cm or inches (in). All these are supported in the ePub flavour of XHTML/CSS.