Posted By

koorb on 10/12/10


Tagged

css clear clearfix


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

geoffreydv
martisj
laurentzziu


CSS Clearfix


 / Published in: CSS
 

  1. .clearfix:before,
  2. .clearfix:after {
  3. content: ".";
  4. display: block;
  5. height: 0;
  6. visibility: hidden;
  7. }
  8. .clearfix:after {clear: both;}
  9. .clearfix {zoom: 1;} /* IE < 8 */

Report this snippet  

You need to login to post a comment.