Forums

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

Home Forums CSS [solved] div doesn’t expand to fit contents Re: [solved] div doesn’t expand to fit contents

#60434
yabune
Member

Ok, I found the problem…

I’m using 960 framework with multiple containers, and inside each container I only use one grid full width.
As I have only one grid for each container I though I didn’t need any clear floats, but I was wrong, as each grid is floated…

So I just had to add <div class="clear"></div> after each <div class="grid_12">…</div> and now it’s working!