When all objects in a DIV container are set to float attributes, the container cannot automatically adapt to the height.
There are two solutions:
Add an empty DIV tag at the end of the container, set its style to clear:both, and then hide the DIV. Set the container style overflow:hidden/auto and zoom:1 (the zoom attribute is for compatibility with IE6).