CSS Clearfix

.cf:before, .cf:after { content: ''; display: table; }.cf:after { clear: both; }.cf { zoom: 1; } /* For IE 6/7 only */
<div class='container cf'> <div class=section>Float</div> <div class=section>Float</div></div>