01-01-2010, 09:02 PM | #1 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
ePub and top margin specification
I tested three Wodehouse books here done by Jellby (The Man Upstairs, Uneasy Money and The Man with Two Left Feet). All of them was missing a @page specification which lead to no top margin on my Gen3 and the top line being shadowed. To fix this I added in the css file:
Code:
@page { margin-top: 2ex; margin-bottom: 1ex } So it would be very good if all ePub uploaded here contained a @page specification. Maybe that could be added in the instructions? The exact values to use could be debated but it should be at least one line. Maybe 1ex is enough but I think 2ex looks better. It seem that the PRS-900 also have problems with shadows (see another thread at MR). |
01-01-2010, 09:24 PM | #2 |
sleepless reader
Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
|
I want to second that suggestion, each eBook should have at least little margins. Even without shadows by the surrounding screen frame, it's a common problem that characters are hard to read if spaced too closely to the edges of the display.
Margins shouldn't be too big by default and the user should be able to overwrite the css style easily if necessary. Using @page seems to be the correct solution. |
Advert | |
|
01-02-2010, 07:20 AM | #3 | |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
The Cybooks already set default left and right margins (which can't be changed), the absence of top margin can be considered as a bug in the reader, and I see the @page margins you suggest as a workaround for this bug. I am reluctant to include a workaround for a specific reader (which can be detrimental in the future) in all uploads, just as I was reluctant to include "text-align: justify" in my books, and the new firmware has confirmed I was "right" EDIT: Anyway, if you are going to add default @page margins, I'd suggest adding side margins too... and I wouldn't have margins in font-dependent units, I'd better have absolute units (mm, pt). Last edited by Jellby; 01-02-2010 at 07:28 AM. |
|
01-02-2010, 09:27 AM | #4 | |||
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I do not agree. User specified margins should override the ones specified in the file. And if that do not happens we can just wait for the fix. Until then it is best to be prepared for this and specify margins so the files works properly on all readers. Quote:
Quote:
|
|||
01-02-2010, 09:30 AM | #5 |
Resident Curmudgeon
Posts: 76,016
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I prefer no margins. It's not an issue with my 505. But then again, give that ePub is easy to edit, it's not much of an issue.
|
Advert | |
|
01-02-2010, 09:51 AM | #6 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
01-02-2010, 11:24 AM | #7 |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Yes, like justification...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
larger top page margin when printing to pdf? | whbenson | Sigil | 0 | 05-15-2010 12:38 AM |
Top Margin in epub | penguintri | ePub | 8 | 05-08-2010 08:37 PM |
Any ongoing work on the epub specification? | b.tarde | ePub | 10 | 03-18-2010 08:33 PM |
little issue converting from odt to epub (top and bottom margin) | superanima | Calibre | 1 | 02-15-2010 04:15 PM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |