Home › Forums › CSS › How to stick footer to the bottom… › Reply To: How to stick footer to the bottom…
January 21, 2016 at 8:35 am
#237126
bearhead
Participant
Is this what you’re looking for?
http://codepen.io/kvana/pen/vLpaZP
I wrapped all of the content before the footer in a div, then applied the following css:
.wrapper {
min-height: 100%;
margin-bottom: -16px; /*negative footer height*/
}
.wrapper:after {
content: "";
display: block;
}
.footer, .wrapper:after {
height: 16px;
}
This method does require you to have a set footer height…