Forum Moderators: not2easy

Message Too Old, No Replies

How to make DIVs fill their container height

         

wyx2000

11:18 pm on Nov 24, 2004 (gmt 0)

10+ Year Member



There are a lot of problems relates to div positioning issues, and there are a lot of answers, but I could not find one for my problem.

I need put a header, a footer, and a content into a area(or whole window area), the content include a fixed width area on the right. the header and footer are in fixed height, and they use the full width. I need this for my chat window, so when user change the size of their chat window, they always see header on top, and footer at the bottom, only main content(message area) changes, I did a lot of search and test, but still could not find a nice solution, I can use table under IE, but that doesn't work for NS. It seems I can use the javascript which hook to onresize event to adjust the size of my DIVs, but I think it is better to find a static(not sure how to say this) way.

Thanks.

willis1480

7:14 pm on Nov 26, 2004 (gmt 0)

10+ Year Member



well, you can use frames, or you can use javascript as you said. Go to this site and you will find some dhtml scripts for determining content heights.

[dynamicdrive.com...]