I learned two different ways of building a clearer element in HTML/CSS and I just would like to know what is the most efficient one.
First one :
HTML
<div class="clear"></div>
CSS
.clear{
clear:both;
}
Second one (some people told me that is the good one) :
HTML :
<div class="clear"> </div>
CSS :
.clear{
clear:both;
height:0px;
overflow:hidden;
border:0;
}
What do you think about it ?