I want to dynamically adjust the height of DIV container for fill the remaining space between the bottom of the page and the content above.
I've tried to use height:100%
or height:calc(100%- XX);
but the height of the segment above is not defined. How can I resize the container below?
So, in this pen, I want to remove the scrollbar and show the content in the entire page.
<h1>Ciao</h1>
<section class="container">
<div>here
</div>
</section>