Ask any question about Bootstrap here... and get an instant response.
Post this Question & Answer:
How can I use Bootstrap to create a sticky footer that always stays at the bottom?
Asked on May 11, 2026
Answer
To create a sticky footer with Bootstrap, you can use the `d-flex` and `flex-column` classes to make the page content fill the available space, pushing the footer to the bottom.
<!-- BEGIN COPY / PASTE -->
<div class="d-flex flex-column min-vh-100">
<main class="flex-fill">
<!-- Your main content here -->
</main>
<footer class="bg-light text-center py-3">
<!-- Footer content here -->
Sticky Footer
</footer>
</div>
<!-- END COPY / PASTE -->Additional Comment:
✅ Answered with Bootstrap 5 best practices.- The `d-flex` and `flex-column` classes make the container a flexbox with a column direction.
- `min-vh-100` ensures the container takes at least the full viewport height.
- `flex-fill` allows the main content to expand, pushing the footer to the bottom.
- The footer is styled with `bg-light` and `text-center` for a light background and centered text.
Recommended Links:
