Possible Duplicate:
Complex CSS selector for parent of active child
How would I make a css selector with that applies style to a table cell that has an input child element?
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.
Unfortunately, you can’t target parent elements in CSS yet
(I believe it will come in CSS3)(see Sam’s answer). If you want to do this, you’ll either have to a) use javascript or b) add a class name to thetdcontaining the input.Here is a nice reference of the selectors you can use currently to target children, siblings, types, etc.