View Single Post
Old 02-17-2011, 02:56 PM   #46
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by cybmole View Post
but I have already observed and posted that extra css is honored expect for where it's contradicted within a style sheet ???

I will now test with an epub to epub conversion

1. I take an epub which has had indents removed by an added text-indent: 0 within the calibre2 style

2. i convert epub to epub using p { text-indent: 1em} in extra CSS

3 I view the output and see no indents.

so, as I thought, this is nothing to do with epub to mobi, there's a bug/feature which means the extra css line is not being applied when it is contradicted explicitly in the stylesheet.

so - bug or feature ???
Feature, That is why it is called Cascading Stylesheets. There is a particular cascade rule that tells which one gets used. Generally the more restricted rule is applied over the more general rule thus a style on a page overrides a style in the CSS file for example. Changing the order of entries changes the cascade if they are otherwise the same. You can also add !important to an entry to make it get preferences.

Dale
DaleDe is offline   Reply With Quote