Posted By

enochrisen on 10/31/06


Tagged

css clear float clearfix


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

enochrisen
Hirmine


CSS Clearfix


 / Published in: CSS
 

  1. .clearfix:after {
  2. content: ".";
  3. display: block;
  4. height: 0.1px;
  5. clear: both;
  6. font-size: 0;
  7. visibility: hidden;
  8. }
  9.  
  10. .clearfix {
  11. display: block;
  12. }
  13.  
  14.  
  15. /* This would preferable go in an IE specific stylesheet */
  16. /* \*/
  17. * html .clearfix {
  18. height: 1%;
  19. zoom: 1;
  20. }
  21. /**/

Report this snippet  

You need to login to post a comment.