Possible Duplicate:
Is there a CSS parent selector?
Say you have:
----------
X
----------
Y -> Z
----------
Given Z is children of Y, i want to select all X which have a sibling that has a child Z
Possible Duplicate:
Is there a CSS parent selector?
Say you have:
----------
X
----------
Y -> Z
----------
Given Z is children of Y, i want to select all X which have a sibling that has a child Z
You cannot select a parent element in CSS based upon the child and sibling elements...so there's no way you can get this done...
So there's no CSS parent selector yet..
CSS 2 Selector's Specification Reference
CSS 3 Selector's Specification Reference
In CSS4 Specification I remember there was something like $
kind of thing but it was rejected later