How to Make Footer Stay at Bottom of Page with Tailwind CSS

Posted on 12/28/2023

Step 1

Add these class to wrapper that you are using.

flex flex-col min-h-screen

It's should like this

<div class="flex min-h-screen flex-col"></div>

Step 2

Add this class to the <footer> tag or whatever your tag you might be using.

mx-auto

It should look like this:

<div class="mx-auto"></div>

Sources:

Created with ❤️ using Next.js & Tailwind CSS