Possible Duplicate:
Is there a CSS parent selector?
CSS selector for “foo that contains bar”?
I have a set of nested unordered lists, and I want to be able to style just the <li>
parent items that have children. The html look something like this:
<ul>
<li>item one</li>
<li>item two</li>
<li>item three
<ul>
<li>child item</li>
</ul>
</li
</ul>
I want to be able to add a background image, i.e., to ONLY "item three". What's the easiest way to do this?