Aside from the clear: both hack, you can skip the extra element and use overflow: hidden on the wrapping div:
<div style="overflow: hidden;">
<div style="float: left;"></div>
<div style="float: left;"></div>
</div>
Aside from the clear: both hack, you can skip the extra element and use overflow: hidden on the wrapping div:
<div style="overflow: hidden;">
<div style="float: left;"></div>
<div style="float: left;"></div>
</div>