Fix footer not always sticking to the bottom
Closed this issue ยท 8 comments
flowirtz commented
flowirtz commented
Hey @geekayush that's amazing, thanks!
Please make sure to work off the v1
branch here: https://github.com/openclimatefix/openclimatefix.github.io/tree/v1
I'll move that into master
hopefully on Wednesday.
flowirtz commented
Hey @geekayush, would you still like to work on this? ๐
flowirtz commented
Hey @geekayush I'll unassign you for now, feel free to ping me if you want to pick it up again.
ollicle commented
The CSS necessary to make this happen:
html,
body,
#___gatsby,
#gatsby-focus-wrapper {
height: 100%;
}
#gatsby-focus-wrapper {
display: flex;
flex-direction: column;
}
main {
flex: auto;
}
Iโll leave it to someone who knows their way around tailwind and/or react to implement :)
ollicle commented
Alternatively with CSS grid:
html,
body,
#___gatsby,
#gatsby-focus-wrapper {
height: 100%;
}
#gatsby-focus-wrapper {
min-height: 100%;
display: grid;
grid-template-rows: auto 1fr auto;
grid-template-columns: 100%;
}
geekayush commented
flowirtz commented
@geekayush ah even better! Thanks so much. No worries at all. I appreciate your help!