I am trying to make this outer <div>
scroll only in the x-axis, but it doesn't seem to be working properly.
.wrapper {
width: 98%;
height: 320px;
padding-left:1%;
padding-right:1%;
white-space: nowrap;
overflow-y: hidden;
overflow-x: scroll;
-webkit-overflow-scrolling: touch;
background-color: #fff;
float:left;
position:absolute;
}
.internal {
width:250px;
height:320px;
display: inline;
background-color: wheat;
float:left;
position:static;
}
<div class="wrapper">
<div class="internal">item 1</div>
<div class="internal">item 2</div>
<div class="internal">item 3</div>
<div class="internal">item 4</div>
<div class="internal">item 5</div>
<div class="internal">item 6</div>
<div class="internal">item 7</div>
</div>
When I view it on my screen, it appears as:
What could be causing the issue?