View Single Post
Old 09-29-2010, 11:27 AM   #35
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
Quote:
Originally Posted by DTM View Post

However, if you really want something centered, you can get Stanza to do it by including the !important tag in your CSS. Thus, I use an entry like this:

.centered
{
text-align:center !important;
}
DMT, that works great. Thanks for the tip.

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?

I agree with you that there is no reason Stanza should not support standard center tags. I would ditch Stanza because of that if I could find a substitute as good. But Stanza's flexibility and the ease with which it interfaces with Calibre are why I will live with this quirk.

I also think we won't be seeing any further development and improvements to Stanza in the future as Amazon owns it and they have no incentive to strengthen it as it is a competitor in some ways to their kindle app. That's too bad.
PatNY is offline   Reply With Quote