.classname:before,
.classname:after {
    content: " ";
    display: table;
}
 
.classname:after {
    clear: both;
}
 
/* IE6/7 support */
.classname {
    *zoom: 1;
}