<div style="overflow: hidden;">
    <div style="height: 20px; width: 50px; background-color: blue; float: left;"></div>
    <div style="height: 20px; width: 50px; background-color: green; clear: left;"></div>
</div>