View Single Post
Old 01-27-2010, 08:15 AM   #28
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 24,351
Karma: 73601030
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
Quote:
Originally Posted by zelda_pinwheel View Post
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.
__________________

Kai Lung Raises His Voice
, now available at Amazon and BooksOnBoard
A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories.

Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010
pdurrant is offline