I used to clear floats by adding the CSS style clear: both to the element underneath the floating elements. This was a pain because sometimes you had to add a <br> tag under it with the clear: both set. Then while searching for a better way (there is always a better way) to clearing floats I found the overflow rule.
Essentially, just add