Posted By

a1ias on 07/28/11



Viewed 291 times
Favorited by 0 user(s)

Clearfix (IE included)

/ Published in: CSS
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. .clearfix {
  2. zoom:1;
  3. overflow:hidden;
  4. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.