CSS floats are usually the bane of most front-end coding for layout. If you add or change one thing you weren’t expecting, you change it all. This article gives a great explanation for float behavior and multiple solutions for elements that collapse when you float child elements. Very well-done presentation with illustrations and bulleted sections.