Quote:
Originally Posted by cybmole
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