Your Ad Here

Posted By

a1ias on 07/28/11


Tagged

clearfix


Versions (?)

Clearfix (IE included)


 / Published in: CSS
 

URL: http://www.1stwebdesigner.com/css/17-css-html-effects/

Many of you know about .clearfix method for correcting heights when you use floats. Well, in many of these cases, that amount of code could be replaced by just two lines

  1. .clearfix {
  2. zoom:1;
  3. overflow:hidden;
  4. }

Report this snippet  

You need to login to post a comment.