Open GregJohnStewart opened 1 year ago
I don't think absolutely positioning the footer like this is the modern way to achieve a "sticky" footer. You can use flexbox/grid to get the same result. For example via Bootstrap's helper classes:
<body class="min-vh-100 vstack">
<header>
this is the header
</header>
<main class="flex-grow-1">
main content area
</main>
<footer>
footer goes here
</footer>
</body>
Thanks a bunch, this worked extremely well for me! Might just say a todo here is to add an example in the docs, but I'll leave it up to you guys
Yep @GregJohnStewart, please let it open so that we can think about adding it as an example. Thanks for the idea btw.
Prerequisites
Proposal
I would like a utility similar to
sticky-footer
that has slightly different behavior, as described here: https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/If there's currently a way to do this, apologies that I missed it.
If it cannot be summed up into a single utility, might also be helpful to have an example featuring this behavior.
Motivation and context
This footer behavior is desirable to me.