![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
|
How to modify the top margin?
Hi guys, do you know how to change the top margin. I have used kobopatcher to reduce the bottom margin, however I didn't find how to modify the top margin.Could you know it? Thanks.
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
The epub reader has only a very small top margin built-in, in firmware 3.2.0 it is just 15 pixels on the Glo, or less than 2mm. So, if you are reading kepubs, then one way to reduce the top margin is to sideload the book as an epub.
If you are already reading epubs and your top margin is larger than 2mm, then you can edit the book to remove the @page margin/padding. But if you want to remove the remaining 2mm top margin from the built-in epub reader, then I don't think anyone knows how to do that yet. Edit: Attached a screenshot from my Glo showing a page from an epub with no extra top margin/padding in the book, just the 15 pixel top margin built in to the epub reader. Last edited by GeoffR; 04-19-2014 at 01:07 PM. Reason: Added screenshot |
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Not sure which Kobo model you have but if you're a calibre user this method will work for standard epubs (not sure about kepubs)
Just add something like the following to your custom kobo_extra.css file: Code:
@page {margin-top: 10pt; margin-bottom: 0; margin-left: 0; margin-right: 0}
Edit: You will also need to re-send-to-device all your epubs from calibre to the Kobo afterwards for the bigger top margin to take effect. Last edited by jackie_w; 04-20-2014 at 01:29 PM. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Well that is a nice change :-) Editing the book's stylesheet the way jackie_w suggests is probably the best way to go, that is what I do.
However I do have a patch for the epub reader's built-in stylesheet if anyone wants to try it. Although it has the advantage that the books don't need to be edited and sideloaded again, it has the disadvantage that the page margin set in the built-in stylesheet overrides any page margin set in the book, which means the book can't use a smaller margin. (Some books use a zero margin for the cover page, for example). Here is the patch for firmware 3.2.0. Spoiler:
Edit: I have been looking into a way to make the top margin adjustable, i.e. so that when you adjust the left/right margins the top margin changes to match. I think it is possible to do it, and if I had the source code I think I could add this feature in 5 minutes, but it is an awful lot more work to do it with a patch :-( Last edited by GeoffR; 04-20-2014 at 03:08 PM. Reason: Note on adjustable margin. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS margin instead of margin-top, etc. | icallaci | Conversion | 24 | 10-19-2013 09:52 AM |
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } | cybmole | Conversion | 15 | 02-12-2011 11:57 AM |
Top Margin in epub | penguintri | ePub | 8 | 05-08-2010 08:37 PM |
ePub and top margin specification | tompe | Upload Help | 6 | 01-02-2010 11:24 AM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |