how to make the footer stay at the bottom html code example
Example 1: how to get my footer to the bottom of the page using css
#page-container {
position: relative;
min-height: 100vh;
}
#content-wrap {
padding-bottom: 2.5rem;
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 2.5rem;
}
Example 2: keep footer at bottom of page
#footer {
position: relative;
margin-top: -180px;
height: 180px;
clear: both;
}
body:before {
content: "";
height: 100%;
float: left;
width: 0;
margin-top: -32767px;
}