My basic layout is simple:
header {
background: red;
}
main {
background: aqua;
font-size: 48px;
}
footer {
background: grey;
position: fixed;
bottom: 0;
width: 100%;
padding: 20px;
}
<header>head</header>
<main>
Curabitur aliquam convallis luctus. Vestibulum dolor turpis, consectetur a placerat eget, pellentesque id eros. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
</main>
<footer>foot</footer>
If I make my footer position:fixed
it does stay at the bottom of the page, but is a "sticky" footer and covered content when scrolling is needed.
I would like to keep the footer at the bottom, but not be fixed
.
Is this even possible to do with pure CSS?