I am facing an issue with disabling hover effects on an outer div when hovering over an inner button. I have tried various methods but haven't been successful in achieving the desired outcome.
.container {
background-color: #e6e6e6;
width: 400px;
height: 400px;
margin: 0 auto;
position: relative;
text-align: center;
align-items: center;
border: 1px solid black;
}
.container:hover {
border: 1px solid #99ffcf;
background-color: #bababa;
}
button {
padding: 10px;
margin-top: 170px;
}
button:hover {
cursor: pointer;
}
<div class="container">
<button type="button">Click Me!</button>
</div>
Check out the Codepen Demo: https://codepen.io/sherbethead/pen/LYMboRG