Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2010, 02:57 PM   #1
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Is there a way to get Calibre to retain "!important" in a css?

On an epub-to-epub conversion, Calibre will strip out the designation !important that I've added to the stylesheet. Is there a way I can get Calibre to retain it?

I've just started using it because Stanza ordinarily refuses to honor standard centering instructions in a css. This is a known quirk of Stanza, and the !important designation next to the "center" instruction gets Stanza to comply.

I notice there is an extra CSS field under the conversion settings. Is there something that can be done there? Some instruction? I have never used that field before for anything so am not aware what it can do.

Ordinarily, I don't do epub-to-epub conversions, but they are necessary sometimes to "fix" some minor things in an epub or to alter things like line spacing or cover art.
PatNY is offline   Reply With Quote
Old 01-06-2011, 12:31 PM   #2
elkaintmoose
Junior Member
elkaintmoose began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2010
Device: iPod Touch
I just ran into this myself. Found I could "fix" it by using the "Tweak ePub" command, and re-editing the stylesheet there. (E.g.: find 'text-align: left' replace 'text-align: left !important' etc.)

I'd rather not have to "fix" these files at all, though. Does anyone know why Calibre strips !important designations? Is there a way to stop it?
elkaintmoose is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS to "wrap" text between two .xhtml files? december Sigil 28 12-06-2013 03:29 PM
Getting calibre to detect "Prologue" and "Epilogue" for TOC sherman Calibre 2 09-20-2010 02:21 AM
using "Extra CSS" box RedRoverJ Calibre 4 06-25-2010 07:08 PM
An important "instant-On" feature in the 15.2 firmware kacir PocketBook 10 06-24-2010 12:46 PM
Suggestion: Don't set "color" tag in .epub css McAlsop Calibre 16 06-17-2010 09:13 AM


All times are GMT -4. The time now is 05:10 AM.


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