[Solved] Spacing out divs

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

[Solved] Spacing out divs

Post 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?
Last edited by Anonymous on Mon Aug 04, 2008 12:21 pm, edited 1 time in total.
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: spacing out divs

Post by christiaans »

Try using the clearfix hack (google for it), that might work.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: spacing out divs

Post by Dr.CSS »

Wrap the 2 divs, not floated, in a div that is floated...
Post Reply

Return to “Layout and Design (CSS & HTML)”