+ 1

Can we change another div on hover another one ??

25th Jul 2021, 9:53 AM
Aditya Dhiman
Aditya Dhiman - avatar
4 Réponses
+ 3
Try ~ in selector to hover effect the adjacent element. You cant do to more farther element. .elem1::hover .elem1~ .elem2{ Effect:value; }
25th Jul 2021, 11:51 AM
Divya Mohan
Divya Mohan - avatar
25th Jul 2021, 10:08 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
My question is Can we change another div on hover other div using css hover??
25th Jul 2021, 10:01 AM
Aditya Dhiman
Aditya Dhiman - avatar
0
I think that would be with javascript to alter the CSS.
26th Jul 2021, 8:42 AM
Adehunoluwa Praise
Adehunoluwa Praise - avatar