Posted By

davidhellmann on 03/03/10


Tagged

css


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jumaha


CSS Clearfix


 / Published in: CSS
 

  1. /* Clearfix */
  2. .clearfix:after {
  3. content: ".";
  4. display: block;
  5. clear: both;
  6. height: 0;
  7. visibility: hidden;
  8. }
  9. /* Clearfix Patches für den IE */
  10. .clearfix { display: inline-block; }
  11.  
  12. /* Vor IE5/Mac verstecken mit dem Commented Backslash Hack */
  13. * html .clearfix { height: 1px; }
  14. .clearfix { display: block; }
  15. /* Ende des Versteckspiels für den IE5/Mac */

Report this snippet  

You need to login to post a comment.