Posted By

Tate on 07/08/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

qubestream


Clear floated divs without extra markup


 / Published in: CSS
 

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

  1. .clearfloat:after {
  2. display:block;
  3. visibility:hidden;
  4. clear:both;
  5. height:0;
  6. content:".";
  7. }
  8.  
  9. .clearfloat {
  10. display:inline-block
  11. }
  12.  
  13. .clearfloat {
  14. display:block
  15. }

Report this snippet  

You need to login to post a comment.