Posted By

satonthat on 03/18/10


Tagged

css clearfix


Versions (?)

css clearfix


 / Published in: CSS
 

URL: http://www.webtoolkit.info/css-clearfix.html

  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.