[thelist] css child and descendant selectors

Marc Seyon seyon at delime.com
Mon Feb 11 23:23:01 CST 2002

Ok folks,
Carnival "weekend" here in my homeland, but while the rest of the country
cavorts away in reckless abandon, I'm hard at work.

Trying to get my head around the CSS "child" and "descendant" selectors.
Hypothetically of course, as I realise very few browsers actually get this

Using this example:

<li>child of 'ol'
<li>child of 'ol'
<li>descendant of 'ol'; child of 'ul'
<li>descendant of 'ol'; child of 'ul'
<li>child of 'ol'

ol li {styles} should apply to all the li tags.
ol > li {styles} should apply only to the three marked 'child of ol'?

Am I right?


More information about the thelist mailing list