Page 1 of 1

[Solved] Spacing out divs

Posted: Thu Jul 31, 2008 1:18 pm
by buntrosgali
I have created a sponsors column on my site.

and i  have then created two extra sponsor divs to sit ontop of the sponsor column.

How do you make floating divs sit underneigh each other?

The Site

you can see on the right side i have a floating background image called sponsor_column

then you will see the 2 floating adverts "which at the moment are the same" i want them to sit over of the background sponsorcolumn image 1 over the other like this:

image

i tried using a

.clear {
clear:both;
}

in the css

and then adding



into the template but it didnt work

Suggestions?

Re: spacing out divs

Posted: Thu Jul 31, 2008 2:55 pm
by christiaans
Try using the clearfix hack (google for it), that might work.

Re: spacing out divs

Posted: Thu Jul 31, 2008 10:58 pm
by Dr.CSS
Wrap the 2 divs, not floated, in a div that is floated...