I have a main div with another nested div inside. The nested div contains cards, but I am unable to scroll through them due to the fixed positioning of the main div. I need a way to enable scrolling for the cards within the nested div. Note that the presence of the nested div is optional. The following code includes HTML and corresponding CSS:
.HumCategoriesWrapper {
display: flex;
align-items: center;
flex-direction: column;
/* width: 30%; */
padding: 0 20px 0 20px;
max-width: 1000px;
margin: 0 auto;
background: #1C1E2B;
float: left;
min-height: 100vh;
position: fixed;
right: 0;
overflow: hidden;
}
.HomePageWrapper {
width: 80vw;
float: right;
}
<div className="HumCategoriesWrapper">
<h2 style={{paddingTop: "40px", paddingBottom: "20px", width: "100%", color: "white"}}>Hum Categories</h2>
<div contenteditable className="humCatCards">
<HomeCard />
<HomeCard />
<HomeCard />
<HomeCard />
<HomeCard />
<HomeCard />
<HomeCard />
</div>
</div>
</div>