.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
 
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;} 
/* End hide from IE-mac */
 
*:first-child+html .clearfix{min-height: 1px;} /* for IE7 */

.clear {
	clear: both;
	height: 0;
	width: 100%;
	font-size: 1px;
}