Ask any question about Bootstrap here... and get an instant response.
Post this Question & Answer:
How can I create a sticky footer using Bootstrap utilities?
Asked on Mar 10, 2026
Answer
To create a sticky footer using Bootstrap utilities, you can utilize Bootstrap's flexbox and spacing utilities to ensure the footer stays at the bottom of the page even if the content is short.
<!-- BEGIN COPY / PASTE -->
<div class="d-flex flex-column min-vh-100">
<main class="flex-fill">
<!-- Your main content here -->
</main>
<footer class="bg-dark text-white mt-auto py-3">
<div class="container">
<span>Sticky Footer Content</span>
</div>
</footer>
</div>
<!-- END COPY / PASTE -->Additional Comment:
✅ Answered with Bootstrap 5 best practices.- Use the `d-flex` and `flex-column` classes on a parent container to create a flexbox layout.
- `min-vh-100` ensures the container takes at least the full viewport height.
- `flex-fill` allows the main content to expand and fill available space.
- `mt-auto` on the footer pushes it to the bottom of the container.
- Customize the footer's appearance with `bg-dark`, `text-white`, and `py-3` for styling.
Recommended Links:
