Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2010, 03: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: 928
Karma: 46026034
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, 01: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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:29 PM
Getting calibre to detect "Prologue" and "Epilogue" for TOC sherman Calibre 2 09-20-2010 03:21 AM
using "Extra CSS" box RedRoverJ Calibre 4 06-25-2010 08:08 PM
An important "instant-On" feature in the 15.2 firmware kacir PocketBook 10 06-24-2010 01:46 PM
Suggestion: Don't set "color" tag in .epub css McAlsop Calibre 16 06-17-2010 10:13 AM


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


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