Floating elements do not apply height to their container. You either need to:
- Add an element with
clear: both;
after the floats, OR - Add
overflow:hidden;
to the containing element, OR - Use
display:inline-block;
instead offloat:left
[Most recommended by me]