+ 2
hover in css
https://code.sololearn.com/WI1k3PbQg9US/# while hovering hamburger menu background-color is not changing..
5 Answers
+ 5
If you're trying to access child then continue doing what you're doing:
.myParent:hover .myChild {}
Otherwise, you're gonna have to take help of JavaScript.
+ 4
It would not work like that.
.header is parent of .hamburger-menu not child. Syntax you're using is for child selector.
+ 4
You can use pointer-events property for that!
Basically you've to turn off pointer-events on parent, but not for child and attach hover event on parent.
See the implementation:
https://code.sololearn.com/W1Owl6Ik62JZ/#
+ 1
what can I use for change property of a element while hovering another element ?
+ 1
ok thanks for help