CSS - Float Fix / Overflow Fix - clearfix / overflowfix


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



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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.