Is there a method to make a div fill 100% of the available page height, until it contains enough content to require a scrollbar?
// For example, if the browser height is 600px:
<div>
// Initially empty, so it will be 600px tall.
</div>
....
// As content is added and the div becomes taller than
// the page, I don't want it to keep auto-adjusting its height.
<div>
<ul>
<li></li>
<li></li>
...
</ul>
</div>
Is there a particular style that can achieve this, or does it need to be implemented using JavaScript?
Thank you