Here's a floated paragraph (blue border) inside a div (red border)—because the paragraph is floated, the div no longer encloses the paragraph. You can see that the div has snapped shut and its top and bottom border touch— block elements don't enclose floated elements.