Return to Snippet

Revision: 49590
at July 26, 2011 02:01 by xcsteve99


Initial Code
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }

Initial URL
http://www.positioniseverything.net/easyclearing.html

Initial Description
just add a class of .clearfix to any element containing a float needing to be cleared

Initial Title
Clearing a Float without Source Markup

Initial Tags

                                

Initial Language
CSS