Answers for "how to make the footer stick to the bottom"

3

html make footer stick to bottom

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
footer{
    margin-top: auto;
}
Posted by: Guest on May-12-2021
2

push footer to bottom

.flex-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between
}
Posted by: Guest on August-13-2020
-1

keep footer at bottom of page

#footer {
  position: relative;
  margin-top: -180px;
  /* negative value of footer height */
  height: 180px;
  clear: both;
 /*Custom styling*/
}

/* Opera Fix thanks to Maleika (Kohoutec) */

body:before {
  content: "";
  height: 100%;
  float: left;
  width: 0;
  margin-top: -32767px;
  /* thank you Erik J - negate effect of float*/
}
Posted by: Guest on November-16-2020

Code answers related to "how to make the footer stick to the bottom"

Browse Popular Code Answers by Language