Posted By

Freese on 01/14/08


Tagged

css clear hacks floats


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

falp
basicmagic
stoker
chill3d
iSiSo


Clearing Floats without markup


 / Published in: CSS
 

  1. .clearfix:after {
  2. content:".";
  3. display:block;
  4. height:0;
  5. clear:both;
  6. visibility:hidden;
  7. }
  8. .clearfix {display:inline-block;}
  9. /* Hide from IE Mac \*/
  10. .clearfix {display:block;}
  11. /* End hide from IE Mac */

Report this snippet  

You need to login to post a comment.