Posted By

Tagged

Make an HTML Container Clear Floating Child Elements Using Only CSS

Usually when designing a site using floating elements in HTML/CSS, you need to an extra html element with the css style {clear:both;}. This method lets you apply styles to the container of the floating elements so that you don't have the headache of using a clearing div. This is cross-browser and IE6 friendly!