Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2014, 01:58 PM   #1
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
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?
VirgoGirl is offline   Reply With Quote
Old 04-01-2014, 02:33 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by VirgoGirl View Post
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?
Those are the same (results).
Margin is the short form:

Margin: (top right bottom left) values
Margin: ((both)Top and Bottom (both)Left and Right)
theducks is offline   Reply With Quote
Advert
Old 04-01-2014, 08:22 PM   #3
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
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...
VirgoGirl is offline   Reply With Quote
Old 04-02-2014, 10:16 AM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by VirgoGirl View Post
*muttering* If it ain't broke...
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)
jackie_w is offline   Reply With Quote
Old 04-02-2014, 12:32 PM   #5
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
Quote:
Originally Posted by jackie_w View Post
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)

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!
VirgoGirl is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:40 PM.


MobileRead.com is a privately owned, operated and funded community.