CSS hover on a div, but not if hover on his children [duplicate] January 1, 2024 by Tarik You can simply achieve this by adding this property to the child class CSS. pointer-events: none; This worked for me.