Quote:
Originally Posted by pdurrant
This is slightly different from the use of two style sheets on the same element. The cascading bit means that an element inherits all applicable styles, with the specific overriding the generic.
So a paragraph <p class="first"> inherits any style set on body, any enclosing div or other block, the generic paragraph style definition and only then the class "first".
|
If goes body, p, first in that order.
I set p to what most p will be so I can get rid of things like <p class="para">. makes the code look that bit neater and the ePub smaller.