Forums

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

Home Forums CSS background and css problem Re: background and css problem

#130139
wolfcry911
Participant

The clear: both is not for the parent to contain the children floats. The clear: both is for an element after the floats causing the parent to envelope that element as well as the floats. If you’re adverse to using clearfix (you shouldn’t be, as Paulie_D states), you could add overflow: hidden to the parent, or float the parent (there’s a couple other ways also).