2018-11-05 12:24:55 +01:00
|
|
|
---
|
|
|
|
layout: examples
|
|
|
|
title: Sticky Footer Template
|
2019-01-08 17:33:28 +01:00
|
|
|
extra_css:
|
|
|
|
- "sticky-footer.css"
|
2018-11-05 12:24:55 +01:00
|
|
|
html_class: "h-100"
|
|
|
|
body_class: "d-flex flex-column h-100"
|
|
|
|
---
|
2013-06-24 02:17:08 +02:00
|
|
|
|
2018-11-05 12:24:55 +01:00
|
|
|
<!-- Begin page content -->
|
2020-03-09 14:37:46 +01:00
|
|
|
<main class="flex-shrink-0">
|
2018-11-05 12:24:55 +01:00
|
|
|
<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>
|
2019-02-04 11:22:02 +01:00
|
|
|
<p>Use <a href="{{< docsref "/examples/sticky-footer-navbar" >}}">the sticky footer with a fixed navbar</a> if need be, too.</p>
|
2018-11-05 12:24:55 +01:00
|
|
|
</div>
|
|
|
|
</main>
|
2013-06-24 02:17:08 +02:00
|
|
|
|
2022-12-29 07:58:35 +01:00
|
|
|
<footer class="footer mt-auto py-3 bg-body-tertiary">
|
2018-11-05 12:24:55 +01:00
|
|
|
<div class="container">
|
2023-01-17 00:55:28 +01:00
|
|
|
<span class="text-body-secondary">Place sticky footer content here.</span>
|
2018-11-05 12:24:55 +01:00
|
|
|
</div>
|
|
|
|
</footer>
|