I have a div details like this, and I tried to make it horizontally scrollable in mobile view, but it doesn't work. I'm not sure what I did wrong with my code.
<div className="details-container" >
<div className="details">
<div>items</div>
<div>items</div>
<div>items</div>
<div>items</div>
</div>
</div>
.details-container {
width: 650px;
padding: 1rem;
padding-top: 0;
font-size: 1rem;
height: fit-content;
-webkit-overflow-scrolling: touch;
overflow-y: hidden;
overflow-x: scroll;
}
.details {
padding: 1rem;
border: solid black 1px;
background-image: url("../../../../assets/images/background/reportBackground.png");
background-repeat: no-repeat;
object-fit: contain;
background-position: bottom;
}
class, notclassName