aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/5.3/examples/sticky-footer
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-08-16 20:47:33 -0400
committerGitHub <[email protected]>2024-08-16 20:47:33 -0400
commit6b28433d9cfde435be8ec2bd6cf91e6324d08865 (patch)
tree8343c27b8b95ff5639233e81cf157f92e5688466 /site/content/docs/5.3/examples/sticky-footer
parentd53094ec16ba385faae2973ddee648698b32ab24 (diff)
parent048f56f51460df75e92a2f7b472e1c56baeb68f7 (diff)
downloadbootstrap-main.tar.xz
bootstrap-main.zip
Merge branch 'twbs:main' into mainHEADmain
Diffstat (limited to 'site/content/docs/5.3/examples/sticky-footer')
-rw-r--r--site/content/docs/5.3/examples/sticky-footer/index.html23
-rw-r--r--site/content/docs/5.3/examples/sticky-footer/sticky-footer.css9
2 files changed, 32 insertions, 0 deletions
diff --git a/site/content/docs/5.3/examples/sticky-footer/index.html b/site/content/docs/5.3/examples/sticky-footer/index.html
new file mode 100644
index 000000000..631addabe
--- /dev/null
+++ b/site/content/docs/5.3/examples/sticky-footer/index.html
@@ -0,0 +1,23 @@
+---
+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>
+
+<footer class="footer mt-auto py-3 bg-body-tertiary">
+ <div class="container">
+ <span class="text-body-secondary">Place sticky footer content here.</span>
+ </div>
+</footer>
diff --git a/site/content/docs/5.3/examples/sticky-footer/sticky-footer.css b/site/content/docs/5.3/examples/sticky-footer/sticky-footer.css
new file mode 100644
index 000000000..f8be43729
--- /dev/null
+++ b/site/content/docs/5.3/examples/sticky-footer/sticky-footer.css
@@ -0,0 +1,9 @@
+/* Custom page CSS
+-------------------------------------------------- */
+/* Not required for template or sticky footer method. */
+
+.container {
+ width: auto;
+ max-width: 680px;
+ padding: 0 15px;
+}