...

View Full Version : Column Background Problem



chrisfromboji
05-17-2008, 10: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:
http://cvoproweb.com/testpage.html
Test CSS:
http://cvoproweb.com/teststyle.css

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

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?

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

<div id="right">
<div></div>
</div>

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

</div>


just clear spaces on the #post




.clear{clear:both;}


hope this answer your question..

chrisfromboji
05-18-2008, 02: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.

+rep'd



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum