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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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