Bootstrap

How to implement and debug sticky footer layouts in Bootstrap?

March 18, 2026

download ready
Thank You
Your submission has been received.
We will be in touch and contact you soon!

Sticky footers in Bootstrap keep the footer glued to the page bottom even with short content, using simple Flexbox tricks like full-height body and growing main sections, debugged by inspecting flex properties in dev tools.​Turn your body into a flex column that spans the full viewport height, let the main content expand to fill space, and the footer naturally hugs the bottom, no more floating or overlapping headaches. For debugging, pop open browser dev tools: check if h-100 hits html/body, confirm main has flex-grow-1, and watch for padding/margins sneaking in to break the flow. Test with minimal content first, then add more to see it push perfectly; Bootstrap 5's min-vh-100 adds extra viewport safety.

Code

<html class="h-100">
<body class="d-flex flex-column min-vh-100">
  <main class="flex-grow-1 py-5">
    <div class="container">Page content grows here</div>
  </main>
  <footer class="mt-auto bg-dark text-white py-3">
    <div class="container text-center">Footer sticks!</div>
  </footer>
</body>
</html>
      
Hire Now!

Need Help with Bootstrap Development ?

Work with our skilled bootstrap developers to accelerate your project and boost its performance.
**Hire now**Hire Now**Hire Now**Hire now**Hire now

How to implement and debug sticky footer layouts in Bootstrap?

Sticky footers in Bootstrap keep the footer glued to the page bottom even with short content, using simple Flexbox tricks like full-height body and growing main sections, debugged by inspecting flex properties in dev tools.​Turn your body into a flex column that spans the full viewport height, let the main content expand to fill space, and the footer naturally hugs the bottom, no more floating or overlapping headaches. For debugging, pop open browser dev tools: check if h-100 hits html/body, confirm main has flex-grow-1, and watch for padding/margins sneaking in to break the flow. Test with minimal content first, then add more to see it push perfectly; Bootstrap 5's min-vh-100 adds extra viewport safety.

Code

<html class="h-100">
<body class="d-flex flex-column min-vh-100">
  <main class="flex-grow-1 py-5">
    <div class="container">Page content grows here</div>
  </main>
  <footer class="mt-auto bg-dark text-white py-3">
    <div class="container text-center">Footer sticks!</div>
  </footer>
</body>
</html>