Possible Duplicate:
Is there a CSS parent selector?
Consider this markup:
<div>
<div>
<p id="my_paragraph">Squirrels!</p>
</div>
<div>
<p>Nuts</p>
</div>
<div>
Is there a CSS selector that would select the first nested div
by the fact that it contains a specific p
? Something like :parent-of(p#my_paragraph)