Forums

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

Home Forums CSS Div Acting Strange Unless Floated Left, which causes new issues Re: Div Acting Strange Unless Floated Left, which causes new issues

#107644
SgtLegend
Member

Instead of using float: left; use overflow: hidden; which will clears the floats on your child elements allowing it to be centered and the full length it needs to be.