Posted By

Toddish on 10/30/09


Tagged

clearfix


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Nanobyte
thatryan


clearfix


 / Published in: CSS
 

  1. .clearfix:after {
  2. content: ".";
  3. display: block;
  4. clear: both;
  5. visibility: hidden;
  6. line-height: 0;
  7. height: 0;
  8. }
  9.  
  10. .clearfix {
  11. display: inline-block;
  12. }
  13.  
  14. html[xmlns] .clearfix {
  15. display: block;
  16. }
  17.  
  18. * html .clearfix {
  19. height: 1%;
  20. }

Report this snippet  

You need to login to post a comment.