Support for sticky footer
It would be nice if Bulma had built-in support for "sticky footers" as described in https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/.
+1 this is a must have!
Yeah, so this requires a class on the html or body, and an additional container like .main or something. It's a tricky one because it's not a separate component but a collection of things. I might add it though.
Any news on that?
trying to do the same but not working :c
@joaoeffting try out...
layout.jsx
<div className={styles.site}>
<Header/>
<main className={styles.site__content}>
// my-content
</main>
<Footer />
</div>
layout.styl
.site
display flex
min-height 100vh
flex-direction column
.site__content
flex 1
yeah.. it would be nice to have a sticky and might a always visible as well. I mean, when you have infinite scroll and still want a fixed footer in your page.
Thanks!
There is a pull request to add this in at #366
@guilhermedecampo solution works well. Just use a wrapper div around the content block that is just above the footer.
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
#wrapper {
flex: 1;
}
@jgthms I'm probably missing something, why were this and #366 closed?
A Sticky footer by default would still be greatly useful
@jgillich @jgthms I'm also wondering why this was closed.
.fix-footer {
position: absolute;
width: 100%;
bottom: 0;
overflow:hidden;
}
I'm using Bulma and echo what other people have mentioned that a sticky footer class="" would be great. I've used, this simple solution, https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ which works great.
+1
Please add sticky class for footer!
+1
The solution mentioned by @obfusticatedcode works flawless but having it built in would be more beautiful
+1
+1
Stop with the +1, they don't do anything. Use reactions.
@jgillich. Yes, that just made an enormous difference...