Simple CSS Clearfix


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

Simple Clearfix


Copy this code and paste it in your HTML
  1. /* ClearFix */
  2.  
  3. .clearfix {
  4. display: block;
  5. }
  6.  
  7. .clearfix:after {
  8. clear: both;
  9. content: ".";
  10. display: block;
  11. height: 0;
  12. visibility: hidden;
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.