Why is my header fixed at the top?
My footer remains fixed at the bottom.
And there is no need for scrolling.
How can the #content fill 100% of the remaining space in the center?
body{overflow-y:hidden;}
footer {
position: fixed;
height: 50px;
bottom: 0;
width: 100%;
}
header{
background-color:yellow;
}
section#content{
background-color:green;
height:100%
}
<header>
Header
</header>
<section id="content">
Content
</section>
<footer>
Footer
</footer>