22

What is the different between clearfix hack and overflow:hidden vs overflow:auto ?

Are all same thing, which is best?

Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852

2 Answers2

18

Ed Eliot has written the definitive guide on the subject.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • 18
    This answer would be better if you summarized key points of the article that you linked to. – KatieK Oct 27 '12 at 06:15
0

Over flow hidden will work like a charm in modern browsers even in IE7, but not IE6 and here where the clearfix method becomes handy.so if you have to target IE6 then clearfix is your friend. here is the new clearfix hack http://perishablepress.com/press/2009/12/06/new-clearfix-hack/

Rahman Saleh
  • 1,038
  • 1
  • 14
  • 20
  • 3
    This answer would be better if you summarized key points of the article that you linked to. – KatieK Oct 27 '12 at 06:15