View Single Post
Old 09-29-2010, 12:43 PM   #36
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
Quote:
Originally Posted by PatNY View Post
I put "!important;" into an existing style instead of making a separate "centered" style and it works fine on Stanza. However, when I do an epub-to-epub conversion in Calibre, "!important" is stripped out of the stylesheet. Does the style need to be called "centered"? If so, can I add other style attributes to it such as margin-left and font weight values?
The style need not be called "centered"; you can call it anything you want.

Yes, you can include any other attributes in any style, that's part of what's so great about using CSS.

Not sure why Calibre would strip that out, unless it's just not aware of !important and thinks it's some garbage that shouldn't be there. In that case, I'd call it a bug, but I just use Calibre to manage my library, so I know very little about conversions.

I would ditch Stanza as well, but as you say, what else is there? I've tried every one I can find and all of them range from "much worse" to "unusable". (Of course, I have not upgraded to OS4, so I have not tried iBooks.)
DTM is offline   Reply With Quote