I'm trying to create a simple effect where a fixed height and width div contains a series of child divs that can be scrolled horizontally.
However, the children are not floating as expected in the following code:
.a {width:200px; height:200px; overflow-x:scroll; border:3px solid red;}
.a > div {width:170px; height:170px; float:left; background:#eee; border:1px dotted #ddd;}
<div class="a">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</div>