Els wrote:

> the second element is a child of the first one.
>
> Some examples:
> 'ul#subNavlist li' means a <li> element, that is a child of a
> <ul> element with id="subNavlist".
> '#subNavlist li' means a <li> element, that is a child of any
> element with id="subNavlist".
> 'ul#subNavlist' means a <ul> element with id="subNavlist".
> 'div.foo' means a <div> element with class="foo".
> '.foo' means any element with class="foo".
> '.foo div' means a <div> element which is a child of any
> element with class="foo".

Ahem - everywhere I said child, I meant descendant.
If you have
<div class="foo">
<ul id="subNavlist>
  <li><a href="bla.html">Bla</a></li>
  <li><a .. (etc)

you can still address the <li> element with
.foo li{...}
While <li> of course isn't a child of the <div>, but a 
grand-child, i.e. descendant.

-- 
Els
http://locusmeus.com/
http://locusoptimus.com/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to