I have an to write a selector similar to:
div#content > section (.left > img) + .left
but obviously the parenthesis are ignored. How should I rewrite this? Or it isn’t possible in plain CSS?
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.
What your trying to do is not possible at least not as of the latest css3 spec.
If your not wanting to add via the server, maybe a bit of jQuery?
See this fiddle as it does what you want very easily
http://jsfiddle.net/4qZpc/2/embedded/result/ – results!
Grab the code:
http://jsfiddle.net/4qZpc/2/