position footer to stay at bottom of screen flexbox

40

/* Use flex and set auto margin */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}

Comments

Submit
0 Comments