Posted By

xcsteve99 on 07/26/11


Tagged

clear float clearfix


Versions (?)

Clearing a Float without Source Markup


 / Published in: CSS
 

URL: http://www.positioniseverything.net/easyclearing.html

just add a class of .clearfix to any element containing a float needing to be cleared

  1. .clearfix:after {
  2. content: ".";
  3. display: block;
  4. height: 0;
  5. clear: both;
  6. visibility: hidden;
  7. }

Report this snippet  

You need to login to post a comment.