Posted By

jkdreaming on 02/02/13


Tagged

clear clearfix before after


Versions (?)

Clear that really works


 / Published in: CSS
 

URL: http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified/

Thanks Thierry!

  1. .clearfix:before,
  2. .clearfix:after {
  3. content: ".";
  4. display: block;
  5. height: 0;
  6. overflow: hidden;
  7. }
  8. .clearfix:after {clear: both;}
  9. .clearfix {zoom: 1;} /* IE < 8 */

Report this snippet  

You need to login to post a comment.