The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

height in CSS?

Maybe I'm missing something here, but I have great difficulty with the 'height' attribute when I want a div to go (vertically) from wherever it starts (top:..px) right down to the bottom of the browser window, in a multi-column layout for instance, and stay there when user resizes browser window.

This is in case I want the div to be a container (with a background color for example) for my content.

I tried 'height:100%', 'bottom:0', things like that.

Sometimes I get it to work, but usually in one browser at a time and when I don't use a DOCTYPE declaration.

I have tested on Windows (IE 5, 6 and Netscape 7), MacOS9.2 (IE 5, Netscape 7) and never could get it completely right .

well...the heigth attribute (in my opinion) is practically useless most of the time...it's not really used for making things extend to the bottom of the page and what not. either way...check out http://www.glish.com/css/ and see if that helps