View Full Version : Column Background Problem

05-17-2008, 11:14 PM
So I'm trying to setup a column on the right side of my content for advertisements.

I've gotten the two columns lined up next to each other, but the problem is that the background doesn't flow down to compensate for the length of the advertisement. It only seems to pay attention to the content in the content column on the left. Does anyone know how to get that background to extend down to compensate for the length of the advertisement, depending up on whether or not it's displayed?

If anyone's better with CSS than I am, and could help, I'm open to suggestions and fixes for how to accomplish this.

Test Page:
Test CSS:

Thanks for the help, hopefully the problem isn't too complicated.

Edit: This problem seems to be occurring in Firefox and Opera, (it works in IE7) does anyone know how to fix this in Firefox and Opera?

05-18-2008, 03:18 AM
<div id="content">

<div id="right">

<div id="post">
<div class="clear"></div><--just add this... and the style ofcourse..


just clear spaces on the #post


hope this answer your question..

05-18-2008, 03:37 AM
Thanks a million!
I was playing around with a bunch of complicated javascript and css stuff to try and get equal columns but this solved my problem with 2 lines of code.