Posted By


AzizLight on 10/19/09

Tagged


Statistics


Viewed 737 times
Favorited by 1 user(s)

Clearfix Improved


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



Copy this code and paste it in your HTML
  1. .clearfix:after {
  2. visibility: hidden;
  3. display: block;
  4. font-size: 0;
  5. content: " ";
  6. clear: both;
  7. height: 0;
  8. }
  9. .clearfix { display: inline-block; }
  10. /* start commented backslash hack \*/
  11. * html .clearfix { height: 1%; }
  12. .clearfix { display: block; }
  13. /* close commented backslash hack */

URL: http://css-tricks.com/snippets/css/clear-fix/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.