09-22-2014, 11:03 AM | #1 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Margin Settings reduced at conversion
I usually set all margins in the @page-css to 5pt. But when I add a book to Calibre and convert it from epub to epub, the program always reduces the @page-style to
Code:
{ margin-bottom: 5pt; margin-top: 5pt } margin-left and margin-right beeing ignored. Thus, the text appears too close to the edges of the screen, and I have to manually correct those settings. What I do not understand is, that in the conversion section of the program ("page settings" - or "preferences" in English, I don't know), all margins are set to 5pt. The described effect appears whether in the "Modify epub Options" the "modify @page and body margin styles" option is checked or not. |
09-22-2014, 12:51 PM | #2 |
Resident Curmudgeon
Posts: 74,262
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In Calibre, in Preferences under Common options, add in your @page CSS under Extra CSS. That will have Calibre add it to the CSS of your conversion.
|
Advert | |
|
09-23-2014, 01:49 AM | #3 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you, I'll try this!
|
09-23-2014, 12:35 PM | #4 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Hm, I added, as you advised me, in Preferences under Common options, an @page CSS under Extra CSS like that:
Code:
@page { margin: 5pt } I closed Calibre and re-started it. Then, I chose a sample epub for conversion, containing (before conversion) only the @page rule for bottom and top. At conversion, under "Layout", my extra css did not appear. Conversion had no effect on the @page as desired. Do I have to always fill in my css style again? |
09-23-2014, 12:35 PM | #5 |
creator of calibre
Posts: 43,912
Karma: 22669818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Margins are controlled under the Page Layout section of the conversion dialog. Set whatever margins you want there.
|
Advert | |
|
09-23-2014, 12:38 PM | #6 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you for the quick answer, Kovid! In fact, it was super-quick!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
@page margin settings | Leonatus | ePub | 7 | 06-25-2014 02:26 AM |
Removing margin settings from epub | treadlightly | Kobo Reader | 5 | 12-07-2013 08:58 PM |
Kobo Glo losing margin settings | antonf | Kobo Reader | 1 | 02-07-2013 05:01 PM |
Changing Margin Settings to use full width of the Screen??? | JBlyth | Kobo Reader | 9 | 07-05-2010 09:54 AM |
Quick question! margin settings? | nick_f | Sony Reader | 15 | 02-20-2009 02:15 PM |