2025-02-17 07:02:47 +01:00
|
|
|
---
|
|
|
|
layout: examples
|
|
|
|
title: Sticky Footer Template
|
|
|
|
extra_css:
|
|
|
|
- "sticky-footer.css"
|
|
|
|
html_class: "h-100"
|
|
|
|
body_class: "d-flex flex-column h-100"
|
|
|
|
---
|
|
|
|
|
|
|
|
<!-- Begin page content -->
|
|
|
|
<main class="flex-shrink-0">
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="mt-5">Sticky footer</h1>
|
|
|
|
<p class="lead">Pin a footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS.</p>
|
|
|
|
<p>Use <a href="{{< docsref "/examples/sticky-footer-navbar" >}}">the sticky footer with a fixed navbar</a> if need be, too.</p>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
2025-02-17 07:08:19 +01:00
|
|
|
<footer class="footer mt-auto py-3 bg-body-tertiary">
|
2025-02-17 07:02:47 +01:00
|
|
|
<div class="container">
|
2025-02-17 07:08:19 +01:00
|
|
|
<span class="text-body-secondary">Place sticky footer content here.</span>
|
2025-02-17 07:02:47 +01:00
|
|
|
</div>
|
|
|
|
</footer>
|