For my responsive design, I am looking to have a footer that sticks to the bottom of the page while allowing the content to fill up the remaining space. You can view an example here: http://jsfiddle.net/rzjfhggu/1/
In this example, the header has a fixed height of 70px, but the content and footer are responsive and their heights are unknown. I attempted to make the footer absolute with a bottom value of 0, and the content absolute with top at 70px and bottom at 0. However, on small devices, the footer ends up on top of the content, hiding it.
.wrapper,
.header,
.content,
.footer {
width: 100%;
}
.header {
height: 70px;
background: orange;
}
.footer {
background: lightblue;
}
.content {
background: yellow;
}
<div class="wrapper">
<div class="header">
HEADER
</div>
<div class="content">
CONTENT
</div>
<div class="footer">
FOOTER
</div>
</div>
Do you have any other ideas or solutions for this issue? Thank you.