Yes, there are better ways. I believe there is a sticky thread about it in this (CSS) sub forum. Basically, you'll want to set height, or min-height (can't remeber), to 100%. This will make the div fill up its parent.
And as you may have already noticed, removing the javascript fixed your initial issue
Also, perhaps it's just me but I don't see why you'd place the left column with -100% left margin. Personally, I think this would be easier(?):
HTML Code:
<div id="content_wrapper">
<div id="left_column">...</div>
<div id="main_content">...</div>
<div class="clear"></div>
</div>
Code:
#left_column { float: left; width: 150px; height: 100%; }
#main_content { float: left; height: 100%; }
.clear { clear: both; }
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 08-30-2011 at 01:04 AM..
|