08-07-2016, 07:31 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2016
Device: Kobo Mini, Aldiko
|
Question on how to edit text margins (avoiding corner)
Hi everybody,
I'm a long time user of Calibre but just for pretty basic stuff. My Kobo Mini is in its last days and nowadays it works partially with a (probably broken) "frozen" corner, but the rest of the screen still looks readable. I found around the forum some old posts mentioning that some feature in the Calibre Editor allow to set a Top or side margin (with pixels? %?) so the text of the resulting epub file would fit into the working section of the screen. Could someone give me a hint on how to do that (if it's possible)? I went around every option on the Edit section and I didn't find anything... Thanks in advance! |
08-07-2016, 11:14 AM | #2 |
The Fumbler
Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
You might consider adding or modifying the following in the css file.
body { margin-left: 6.5em; } Pick the margin you want to increase and change the value of em as you see fit. |
Advert | |
|
08-07-2016, 11:21 AM | #3 | |
Resident Curmudgeon
Posts: 74,407
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
However, the problem is that the screen is broken and eventually will get worse. I suggest a replacement. |
|
08-07-2016, 11:24 AM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2016
Device: Kobo Mini, Aldiko
|
|
08-07-2016, 11:27 AM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2016
Device: Kobo Mini, Aldiko
|
Thanks for the tip. With the same kind of syntax that the body line suggested by Thom?
(And yes, a replacement will come soon, I was just trying to take some advantage of the last rays of life of my dear Kobo Mini until then ) |
Advert | |
|
08-07-2016, 01:17 PM | #6 |
Resident Curmudgeon
Posts: 74,407
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Yes, similar syntax. Yes any combination of margins that you need. @page set the margins for the page and any other margins work off of those set in @page.
|
08-08-2016, 07:46 AM | #7 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2016
Device: Kobo Mini, Aldiko
|
Quote:
Thanks again to both! |
|
08-08-2016, 12:40 PM | #8 |
Well trained by Cats
Posts: 29,900
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
08-08-2016, 09:10 PM | #9 |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
As we are talking about a Kobo device, you might be able do this without editing the book. The KoboTouch driver supports adding some CSS to all stylesheets in the book during the send to the device. The instructions are in here. Using @page with this might not work as they are treated a little differently than other styles. Part of the reason for doing this was to have a way to remove @page styles, but I have forgotten whether they will be put in if they don't already exist.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to edit margins on jailbroken KindlePW3 5.7.2 | Gabbb | Kindle Developer's Corner | 4 | 02-06-2016 03:57 PM |
How to edit margins in MOBI file? | WDeranged | Calibre | 2 | 09-03-2015 05:43 PM |
Position text bottom right corner | JLius | ePub | 15 | 05-24-2014 02:04 PM |
Kindle Paperwhite edit PDF margins? | bseos | Amazon Kindle | 8 | 02-10-2014 02:00 PM |
Kindle margins edit? | 3bayjunkie | Amazon Kindle | 3 | 01-01-2011 11:38 PM |