Sticky footer
Tailwind CSS Sticky footer
A sticky footer is a component that is pinned to the bottom of the viewport in desktop browsers. It stays visible when the user scrolls the page up or down.
Basic example
If you want to put the
footer
at the bottom of the viewport in the desktop browsers, add the
.sticky
and .bottom-0
classes to the nav
element.
Scroll down
Scroll down
Scroll down
Scroll down
Scroll down
Scroll down
Scroll down
Scroll down
Scroll down
Scroll down
Scroll up
Scroll up
Scroll up
Scroll up
Scroll up