But did you know you can also use the overflow property
CSS: Clearing Floats with Overflow
The typical solution to fix this is by adding an element with clear float after the floating elements or adding a clearfix to the wrapper. But did you know you can also use the overflow property to fix this problem?
出典:http://webdesignerwall.com