I have a div and a div:before. I want when the mouse goes over (hover) the :before element to change its color. Is there a way to do it no matter with css or jQuery?
I tried stuff like div:before:hover but nothing happened
Thanks in advance
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.
Solution 1
(doesn’t resolve question) With just css:
html
edit: fiddle http://jsfiddle.net/bwkM6/
Solution 2
Work around for given problem without :before
http://jsfiddle.net/Z97uN/1/