Forum Moderators: not2easy

Message Too Old, No Replies

Need to expand DIV height to 100%

Can't find any way to do this!

         

tamecrow

5:43 pm on Oct 3, 2007 (gmt 0)

10+ Year Member



Hi all,

Our site is table-less and has a main container div, and inside that is a header div, a left menu div and a right (main text) div. The background of our left menu is white, and we want to have an image at the bottom of this left menu div. I've tried this using it as a background image and setting it to sit at the bottom in the center, but the div's height is only the same as the text inside it. Is there any way to expand the height of the div to 100% of the container, in order for our background image to display right at the bottom of the div?

Demaestro

6:06 pm on Oct 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



min-height:850px;
height:auto;
height:850px;
overflow:auto;

Add all these to the style of the div and it will be good on all modern browsers.

tamecrow

8:37 pm on Oct 3, 2007 (gmt 0)

10+ Year Member



Hi,

That doesn't work - it just makes the div 850px high.