DEV Community


Discussion on: Keep the Footer at the Bottom: Flexbox vs. Grid

masihtak profile image
Masih Abjadi

Thank you Stephanie for this great sires!

For the grid method, you don't have to wrap your content in the <main> tag instead you can use a negative number to ensure that the footer will always remain as the last row in your template!

.footer {
  grid-row-start: -1;

Enter fullscreen mode Exit fullscreen mode