Here, the floating image is taller than the element containing it, so it overflows outside its container:
Add the clearfix hack to the containing element, to fix this problem: