Els wrote: > 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. >
Right -- and though a child element is a type of descendant, it is not the same thing as a descendant. A descendant is any element nested within another one no matter how many levels down, put simply. I strongly recommend reading this for anyone who hasn't yet: http://css.maxdesign.com.au/selectutorial/ Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu ______________________________________________________________________ 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/
