View Single Post
Old 01-03-2010, 11:57 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Ah... silly me!

It's all in the <body> margins, but the <body> must have a class in order to have its settings override the default ones in the reader (and no, !important is not enough). Additional margins can be added to @page, but these go outside the page numbers.

This is a sample file, with zero margins in the <body class="normargin"> element, and 2mm margins in @page.

There is still the issue with the top margin in the cover (and maybe the first page of text, I can't say for sure with an <h1> there). Still testing.
Attached Files
File Type: epub test18.epub (36.6 KB, 348 views)
Jellby is offline   Reply With Quote