Ask any question about Bootstrap here... and get an instant response.
Post this Question & Answer:
How can I create a sticky footer that remains at the bottom in Bootstrap? Pending Review
Asked on Apr 19, 2026
Answer
To create a sticky footer in Bootstrap, you can use the `d-flex` and `flex-column` classes to ensure the footer stays at the bottom of the page. Here's a simple example:
<!-- 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 text-center py-3">
Sticky Footer Content
</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 layout.
- `min-vh-100` ensures the container takes at least the full height of the viewport.
- `flex-fill` allows the main content to expand and fill the available space.
- The footer will remain at the bottom due to the flexbox layout.
- Customize the footer content and styles as needed.
Recommended Links:
