View Single Post
Old 12-30-2009, 06:14 AM   #1
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
Testing margins in ePUB.

Since tompe reported that the Cybooks don't set an appropriate default top margin in ePUBs, I decided to do some tests. I tried with @page CSS rules, with margins for the body element, with Adobe page templates... but couldn't find a satisfactory solution.

So, I'm uploading a test ePUB file and asking for help. It is just a cover image and some dummy text. What I want is:

-The cover should take the full screen, or if the aspect ratio does not match, it should be displayed as big as possible to fit the screen. This includes the generated thumbnail if applicable

-The text should have customizable margins. I mean, I want to be able to set a 0 margin, or a 2mm margin, or whatever, for all 4 edges. I could not find a way to make the side margins narrower than default (but I didn't try negative margins for <body>).

-Ideally, all should be done with standards-compliant CSS, but I could accept some simple page templates.

-I'm interested primarily in something that works for the Cybooks, but it's better yet if it works for other readers and software.
Attached Files
File Type: epub test.epub (36.1 KB, 352 views)
Jellby is offline   Reply With Quote