ClearFix

Geschreven door Kevin van der Peet. Posted in Code snippets

 

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

/* WinIE7 only */
*:first-child+html .ClearFix{
	height:1%;
}. 
/* WinIE6 and below */
/*¥*/
* html .ClearFix{
	height:1%;
}
/**/

/* MacIE only */
/*¥*//*/
.ClearFix{
	display:inline-table;
}
/**/