I'm having trouble with the overflow property in my CSS. Even though I've set it to hidden, my div is still scrollable. Can someone please explain why this might be happening?
.myDiv {
position: relative;
width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
flex-direction: column;
overflow: hidden;
}
I am also adding some HTML structure for clarity
<div className="myDiv">
<div className='imgBx'>
{/* img content inside */}
</div>
<div className='post'>
{/* post content inside */}
</div>
</div>