Question: 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

Answer: 
`:before` and `:after` pseudo classes cannot take on other pseudo-class attributes.
The correct syntax is 

```
div:hover:before
{
//css here
}

```

[jsfiddle](https://jsfiddle.net/vijays90/aL4536zs/)