View Single Post
Old 01-12-2013, 02:37 PM   #21
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by AlexBell View Post
What values would you suggest?
I use: @page { margin-top:6pt; margin-bottom:4pt }

and in body margin:0 6pt 0 6pt; padding:0

This ensures that the top/bottom margins still apply when the top or bottom of the current page is not being displayed, i.e. you're somewhere in the middle of a page which is longer than 1 screen. The lower figure of 4pt for the bottom-margin is because this is only to allow for letters which extend below the line, (g, p, q and y).

Left/right margins are in the body selector to allow easy override on specific pages if required.

Just don't set margins in em or they zoom with the text size and end up consuming lots of screen area. I'd say 75% of my purchased ePubs have these annoying 'zooming' margins.
Agama is offline   Reply With Quote