[thelist] stupid CSS question
Mike Migurski
mike at saturn5.com
Tue Nov 27 17:05:12 CST 2001
>ok, so I know I can do inheritance, such as:
>
>P{color:#FFFFFF;}
>P.foo{font-size:11px;}
>
>but can I do:
>
>.foo{color:#FFFFFF;}
>.foo.fee{font-size:11px;}
yes:
.foo .fee {} should match any element of class fee that is a descendent of
any element of class foo. I think .foo>.fee specifies any element of class
fee that is a *direct* descendent of class foo.
yet for some reason I can't find an example of this at w3.org...
--------------------------------------------------------------------------
michal migurski mike at saturn5.com
tel:650.624.8552 AIM:migurski
http://www.saturn5.com/mike ICQ:47513232
--------------------------------------------------------------------------
We're lying in the gutter, but we're looking at the stars.
--------------------------------------------------------------------------
More information about the thelist
mailing list