Answers for "display flex stick footer to bottom"

CSS
1

position footer to stay at bottom of screen flexbox

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

footer {
  margin-top: auto;
}
Posted by: Guest on December-08-2020

Code answers related to "display flex stick footer to bottom"

Browse Popular Code Answers by Language