What is Logically correct and W3C valid way to clear float?
zoom:1
is not valid by W3C and IE8 don't have hash layout problemoverflow:hidden
andoverflow:hidden
were not made to do this,as the spec intended overflow to be used<div class="clear"/>
is not semantically correct and i don't want to add extra markup.- clearfix hack generates content that really hasn’t any semantic value.
I've asked many questions and read many articles on this issue but haven't find best way.