im trying to create a horizontal scrolling box to create a “timeline” effect… but i cant seem to get it to scroll horizontally, versus the vertical scroll bar that shows up…thoughts?
#container{
width:500px;
height:250px;
border:1px solid #cc61b8;
overflow:auto;
}
.container-bits{
width:250px;
height:498px;
float:left;
}
<div id="container">
<div class="container-bits">Content Here</div>
<div class="container-bits">Content Here</div>
<div class="container-bits">Content Here</div>
<div class="container-bits">Content Here</div>
<div class="container-bits">Content Here</div>
<div class="container-bits">Content Here</div>
</div>
You will need a second container inside your
#containerthat has the width of all.container-bitstogether so that they won´t wrap: