While using overflow-y visible on the child div, a 10px section is getting hidden when hovered over. I want that 10px portion of the child to be visible.
If I remove both overflow properties, it works fine. What could be causing this issue and how can it be fixed? I still need overflow-x to be hidden
.page-wrapper {
margin-top: 20px;
border: solid 1px;
}
.offers-parent {
height: 185px;
overflow-x: hidden;
overflow-y: visible;
}
.offers-child {
width: 310px;
height: 185px;
background: red;
cursor:pointer;
}
.offers-child:hover {
transform: translateY(-10px);
}
<div class="page-wrapper">
<div class="offers-parent">
<div class="offers-child-wrapper">
<div class="offers-child"></div>
</div>
</div>
</div>