If I float:left a bunch of divs that are the same dimensions, it seems to work well, for example: divs properly floating
However, if one of the divs is taller than the others, only the first div will float left of it and the rest are all pushed to the right. I can reproduce this by increasing the height of divtwo in the example:
div.divone{
width:100px;
height:100px;
background-color: red;
border-style: solid;
border-color: blue;
float: left;
}
div.divtwo{
width:100px;
height:250px;
background-color: green;
border-style: solid;
border-color: blue;
float: left;
}
<div class="divone">abc</div>
<div class="divtwo">abc</div>
<div class="divone">abc</div>
<div class="divone">abc</div>
<div class="divone">abc</div>
<div class="divone">abc</div>
What should I do to get those small divs to properly fit in the empty space to the left of the tall div?