I'm curious if it's possible to create a div
that fills the remaining space on a webpage.
I have a website layout in mind with two main sections - one at the top and one at the bottom.
If you have any suggestions on how to achieve this without using position: absolute, I'd love to hear them!
Here's my idea - 3 Divs with specific classes:
<div class="top"><div>
<div class="center" ></div>
<div class="bottom"></div>
Css:
.bottom{
position:relative;
width:100%;
}
.top{
display:block;
min-height: 250px;
}
.center{
display:block;
min-height:30px;
height:auto;
}