07-19-2011, 12:48 PM | #1 |
Carol
Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
Best practices for margins
With several devices now allowing a person to adjust their margins to their liking, what is the best way to specify margin width in an epub? Books that I have bought (for Kobo) have a reasonable margin even when I set the margin width on my device to the minimum which makes me think they must have a margin width set within the epub. I can still make the margins larger if I want to though. However, when I set the side margins (to 5.0pt in the CSS styles) in an epub that I'm creating for a small publishing house, it seems to override any user option on the device - trying to make the margins wider on the Kobo doesn't work. In a nutshell, what I want to do is specify a small left and right margin in the epub so that text isn't right up against the edge on devices where the user can't over-ride margins, but on devices where a user can set their own margins, I would like them to be able to over-ride what I have specified. As I said, judging from some (DRMed) books I've bought, this should be possible. Thanks in advance for any suggestions.
|
07-19-2011, 05:00 PM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Kobo is somewhat unique in that it forces its own margins. Don't use this for a guide. Most readers do not let the user control margins so you should set a reasonable minimum if you need to although zero does work fine with most readers. Some readers do let the user control the margins. There is no standard here. Do not set huge margins because the screen is already pretty small.
|
07-19-2011, 05:08 PM | #3 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
As a general guide, it's best to set the top and bottom margins in @page and the left and right margins in body, e.g.
@page { margin: 5pt 0} body {margin: 0 12pt } This will ensure your margins work properly on older readers that use a version of the Adobe RMSDK that displays page numbers in the right margin. |
07-19-2011, 05:49 PM | #4 |
Resident Curmudgeon
Posts: 73,669
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Personally, I like no margins at all. The problem is that there is no one margin setting that will please everyone. Not everyone likes no margin.
But if you are going to use some margin, use a left/right margin and no top/bottom margin. This will do best on most readers. Do you have access to an older Sony such as a 500 that's been upgraded to ePub, 505, 700, 600? If so, make it so the margin is as small as possible but that the text doesn't sit on the page number on the right side. |
07-20-2011, 02:29 AM | #5 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Not that it stops me from using it though... |
|
07-20-2011, 12:54 PM | #6 |
Wizard
Posts: 1,482
Karma: 11250344
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Forma, Kindle Oasis 2, Sony PRS-T2
|
Since we are talking about margins, I have noticed on my Nook and Sony that if I make margin equal on left and right sides, there is always just a little more margin on the right.
I have been using the @page way of setting margins, but I've found that @page {margin: 6pt 6pt 0pt 8pt} actually centers better on my readers. (I also like a little top margin, especially on the Sony.) I was wondering if this is true for all ADE supporting readers or just the models I happen to own, Nook original and Sony 950. I suppose I should make the margins even, but as I'm making the epubs I'm making for myself, I figure I might as well please myself. Still, it just seemed odd that this happens. |
07-21-2011, 05:32 AM | #7 |
Resident Curmudgeon
Posts: 73,669
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The reason for the slightly more margin on the right is because what ADE is doing is using the extra space to push a character there if it needs to so it doesn't have to drop the entire word to the next line. So justified is not fully flush right.
The nook original and the 950 are not using the latest ADE that supports hyphenation. |
07-23-2011, 01:57 PM | #8 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Personally, I try to put all margins (small) in @page, so I force the body with no margins:
html body { margin: 0 } (This is body inside html, which has higher preference than just body, and appears to be necessary in the Cybooks, for instance.) Then just add my desired margins with: @page { margin: 2mm } This, at least, is a single where margins can be tweaked by me or other readers. Eventually, I hope the reading devices will have a margins setting, so I can just put "margin: 0" everywhere. |
07-24-2011, 07:13 PM | #9 | |
Wizard
Posts: 1,482
Karma: 11250344
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Forma, Kindle Oasis 2, Sony PRS-T2
|
Quote:
|
|
Tags |
epub, margins |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superscript best practices? | DiapDealer | ePub | 19 | 04-14-2012 04:28 PM |
Digitizing a book best practices | Linus | Workshop | 1 | 07-13-2009 01:00 PM |
DTBook - best practices | Nate the great | Workshop | 6 | 05-15-2009 04:06 AM |
Best practices for organizing books | christineb | Calibre | 8 | 03-08-2009 08:56 PM |
EPUB best practices guide | Bob Russell | ePub | 25 | 04-01-2008 08:36 AM |