Home › Forums › CSS › float does not work when combine with HTML5 canvas tag › Reply To: float does not work when combine with HTML5 canvas tag
September 4, 2013 at 7:40 am
#149006
Paulie_D
Member
Yes, I used overflow:hidden as a clearfix shortcut.
This
<div style="clear: both;"> </div>
means cluttering your HTML with elements/code that aren’t actually on the page. I try to avoid that whenever possible.
Normally I would use a clearfix class or try and avoid floats altogether. I’m a big fan of inline-block as it avoids the need for clearing altogether…although there are other (minor) issues.