I want to make the height of the sidebar extend as the content gets long. Now, the sidebar div will just only make its height the browser-window height. How can I make it extend to where the content ends?

Hi
I'm facing problem with divs. I have a main div and with in this div I have some other divs.
The problem is I'm unable to fix the height of inner div.
Actually the inner div should take the height according to the content with in it.
But in my case the div height is exceeding the content height.

You can find the actual page here:
http://www.ranganpalke.com/testpage.htm

The problematic div is with yellow background color.
The problem exists with IE7 and FireFox (IE6 shows as expected)

Thank you very much

abduraooft

02-28-2009, 11:02 AM

Try removing the float:left; from

<div style="border: 1px solid red; padding-left: 20px; width: 550px;float: left;">
<span class="questionbold">
Which country is the Bermuda part of? Which country is the Bermuda part of?