Posted By


mcfearsome on 09/28/08

Tagged


Statistics


Viewed 601 times
Favorited by 0 user(s)

Another CSS Clearfix


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your 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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.