Web Hosting Talk







View Full Version : CSS Vertical Problem?


GPearce
11-08-2007, 12:30 PM
Hey
I've been redesigning my site, using CSS, which i'm almost totally new to, and I've done alright so far, but i've hit a slight snag.
I have my site laid out with 3 main content sections, leftnav, rightnav and centre, and all the other bits above that don't matter for now, but i also have my footer section, and when i load the page, the footer goes underneath the left and right nav, and comes to the end of centre, rather than just sitting at the bottom of all 3, which is what i would like it to do. How would i go about setting it to do this?

Thanks

the_pm
11-08-2007, 12:44 PM
Without seeing the layout in action, the best general advice would be to add clear:both to your footer rule. If that doesn't
work, post a link and we'll see what's causing your issues.

GPearce
11-08-2007, 12:53 PM
So add clear:both to the CSS rule for the footer? I'll give it a shot now :)

Thanks

Steve_Arm
11-08-2007, 01:34 PM
After each "group" of floated elements you should do a clear.