What is clearfix?
Recently I was looking through some website's code, and saw that every <div>
had a class clearfix
.
After a quick Google, I learnt that is for IE6 sometimes, but what actually is the clearfix? Could you provide some examples of a layout with clearfix, comparing to a layout without clearfix?
clearfix
cross-browser
CSS
html
layout
- asked 9 years ago
- B Butts
Your Answer