![]() |
#1 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Margins css changed in v1.27?
Hello!
I was editing some ebooks through Sigil that I first converted through Calibre, having to adjust some weird margins. The margin css in the "stylesheet" css before conversion looks like this: .calibre { color: #000; display: block; font-size: 1em; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; page-break-before: always; text-align: justify } But after conversion it looks like this: .calibre { color: #000; display: block; font-size: 1em; padding-left: 0; padding-right: 0; text-align: justify; margin: 0 5pt } I have NO idea how I read that conversion to edit it. Help? ![]() |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Margin is the short form: Margin: (top right bottom left) values Margin: ((both)Top and Bottom (both)Left and Right) |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Thank you, very much appreciated!
*muttering* If it ain't broke... |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
You can change the behaviour in
Convert - Look&Feel - Expand CSS - for a single book conversion Prefs - Common Options - Look&Feel - Expand CSS - for global conversion defaults. With Expand CSS unchecked you get the shortened form (margin). Whereas checked gives you the 4 explicit settings (margin-top, margin-left, etc) |
![]() |
![]() |
![]() |
#5 | |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Quote:
Excellent! Thank you! It's easier - for me - to use the expanded form. Many many thanks for the help, I couldn't find the prefs setting previously! |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
userstyle.css and epub margins | tselling | Sony Reader Dev Corner | 8 | 10-28-2010 01:51 PM |
Is there a way to over ride CSS Margins | gandor62 | Calibre | 0 | 09-21-2010 09:40 PM |
ePub margins : @page vs stylesheet.css | Agama | Calibre | 1 | 08-16-2010 04:37 PM |
css override code for margins? | Amalthia | Calibre | 15 | 08-11-2009 07:20 PM |