I think I'm misunderstanding the concept of the .clearfix
class. Maybe somebody can help me out.
I'm looking for a way to use float
and clear
without messing up my markup. So I thought, that's where .clearfix
can be used for.
Inside of an empty H5BP-project, my markup looks like:
<div></div>
<div></div>
<div class="clearfix"></div>
<div></div>
<div></div>
<div class="clearfix"></div>
<div></div>
<div></div>
<div class="clearfix"></div>
Below the result. I was expecting a tic tac toe-field, though. Can somebody tell me:
- How I can achieve my goal and
- What the
.clearfix
class really can be used for?