Forums

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

Home Forums CSS Site layout troubles; Help appreciated Re: Site layout troubles; Help appreciated

#77159

@Eamonn giving a container div clear:both does NOT prevent it from collapsing if all its contents are floated. The fact that you’re giving it overflow:hidden is what is preventing the containing div from collapsing. Personally I think using overflow to clear is more of a hack than using a clearing div (if I give the container a set height its content can get cropped), and in my own practice don’t use either but actually use the pseudo-element clearfix as it is the cleanest imo.