View Single Post
Old 09-17-2009, 05:01 AM   #7
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: 74,066
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Thank you again for this - it's sorted out one puzzle for me to do with the cover page. Now I specify

body { margin:0; }
@page { margin: 4pt; }

in the my global CSS file, and in the cover page XHTML file I add in an override just after the link to the standard CSS like this:

<link rel="stylesheet" href="../styles/style001.css" type="text/css" />
<style type="text/css">
body {margin:0; padding: 0; border-width: 0; }
@page {margin: 0; padding: 0; border-width: 0; }
</style>

And now my cover stretches to fill the screen as much as possible. Setting padding and border-width to 0 as well as the margin might be overkill, but it does no harm as far as I know.


Quote:
Originally Posted by ugerhard View Post
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.
pdurrant is offline   Reply With Quote