Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#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.