Posted By

hotdiggity on 03/30/09


Tagged

css clearfix BugFix


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

cschlens
wza


clearfix


 / Published in: CSS
 

  1. .clearfix:after {
  2. content: ".";
  3. display: block;
  4. height: 0;
  5. clear: both;
  6. visibility: hidden;
  7. }
  8.  
  9. .clearfix {
  10. display: inline-block;
  11. }
  12.  
  13. /* Hides from IE-mac \*/
  14.  
  15. * html .clearfix {
  16. height: 1%;
  17. }
  18.  
  19. .clearfix {
  20. display: block;
  21. }

Report this snippet  

You need to login to post a comment.