Selector for previous element css

0

There is a css selector that selects the previous element, as well as

img:hover + img{}

But I applied the style to an img prior to img: hover?

    
asked by anonymous 12.02.2016 / 13:25

1 answer

1

It does not exist, you can only select successor elements, being + exactly the next element and ~ any element after, no matter the order.

    
12.02.2016 / 13:43