0

change style another element

I want to change the style an element when I hove on another element in CSS actually, I know I can do it with dom javascript but I want to do it just with css

21st Nov 2020, 7:03 AM
Alireza Babaei
Alireza Babaei - avatar
1 Odpowiedź
+ 2
You can do it for a few scenario but not for all. 1) If element you are hovering and element that will change color are siblings then you can do it. 2) element that will change color is child of element that is hovered. edit: thanks Kevin ★ Here is example https://code.sololearn.com/WjtevZg6vIwP/?ref=app
21st Nov 2020, 7:20 AM
Raj Chhatrala
Raj Chhatrala - avatar