I have a question here for those who know about CSS layouts very well. I've done some searches on the net and find that people still can't find a solution for a DIV that:

- stretch to 100% of the page height when the content height is less than 100%.
- expand to fit the contents when the contents height is more than 100% of the page.

This pretty much works the same as the old table layout. I just need to ask is there already a solution to this problem?

I ask this because I think I have found a solution, a working one tested under Mozilla Firefox 0.8-1.0, Opera 7.23, and IE 5.5/6.0; and it is purely CSS with no hacks and no Javascript.