/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* for the normal browsers */ .clearfix:after { clear:both; content:"."; display:block; height:0; visibility:hidden; } /* for IE6+7 */ /* sets hasLayout */ * html .clearfix, *+html .clearfix {display:inline-block;} /*hasLayout still set*/ * html .clearfix, * html .clearfix {display:block;}