"Evertjan." <exjxw.hannivoort (AT) interxnl (DOT) net> wrote:
Quote:
TR has no text contents, so font and color and textalign do nothing. |
All elements still have all properties. And the "children"
(subelements) of TR inherit properties from their "parent" _if_ the
usual inheritance conditions are fulfilled, i.e. if the property is
inherited and if there is no other setting for this property for it
(except the initial value declated in the property's definition in CSS
specification). And font, color, and text-align properties are
inherited.
On the other hand, in this case, as far as we can deduce from the
problem description, the "children" have those properties set, so
inheritance does not affect them. It affects background-color, since
the first style sheet (incorrectly*)) does not set background-color.
*) Incorrectly in the sense that you should always set color and
background together, to avoid nasty effects of style sheet
interaction, although this is not a requirement in the CSS
specifications.
But honestly, the style sheets in the original question strongly
suggest that the OP should consult good primers and FAQs on CSS before
trying to understand the finer points like the cascade. The FAQs of
this group are a good starting point; in particular they explain why
setting a global fixed font size in an author style sheet is a poor
idea. Actually I would say that font-size: xx-small for BODY is
undescribably foolish.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/