Posted By

catchatpas on 07/19/11


Tagged

css


Versions (?)

clearFix CSS


 / Published in: CSS
 

Clear a div Without extra DIV

  1. .clearfix:after {
  2. visibility: hidden;
  3. display: block;
  4. font-size: 0;
  5. content: " ";
  6. clear: both;
  7. height: 0;
  8. }
  9. * html .clearfix { zoom: 1; } /* IE6 */
  10. *:first-child+html .clearfix { zoom: 1; } /* IE7 */

Report this snippet  

You need to login to post a comment.