View Single Post
Old 09-17-2009, 04:24 AM   #5
ugerhard
Junior Member
ugerhard doesn't litterugerhard doesn't litter
 
Posts: 7
Karma: 110
Join Date: Aug 2009
Device: none
@page selector

Quote:
Originally Posted by pdurrant View Post
Just replace your plain <body> tag with

<body style="margin:5px">

to give five pixels of margin all around the page. If you want more or less, just change the figure. If you want uneven margins, use

<body style="margin:5px 4px 0px 4px">

where the order is top, right, bottom, left.
This will only specify the top and bottom margin for the entire document, won't it (so that the top and bottom margins for a page after the first resp. before the last page of the ebook are not set)? It will work for left and right margins, though.

To specify margins of the pages on the screen, I use the @page selector, mostly with

@page {
margin: 5pt;
}

for display on the CyBook Opus.
ugerhard is offline   Reply With Quote