I spent many hours to achieve this with no conclusion:
Doing this assures that the footer is sticky at the bottom of the screen, even if there is more content on the page. You are able to scroll down and see all the content available as you proceed.
@media only screen and (min-device-width: 768px) { .smwofootergrid.container { position: sticky; bottom: 0; } } .smwofootergrid.container { width: 100%; }
Good. Now the big issue. This solution has two big issues.
1) One mobile devices the footer takes up about two thirds of the screen from the bottom, i.e. there is only a small window to look through at the content.
2) Assume that I have only one line of text on a wiki page. So the footer comes right after that and I have about two thirds of the screen from the bottom which is unused. That's equally bad.
Alternatives I have tried.
html, body { height: 100%; margin: 0; padding:0; } .smwomaingrid { min-height: 100%; }
Alle the tips in forums suggest to add a min-height of 100% to the content area. This however leads to the issue that even if I have just a line the footer is positioned way below the actual end of screen and one needs to scroll to see the footer.
Doing the following is a compromise:
html, body { height: 100%; margin: 0; padding:0; } .smwomaingrid { min-height: 65%; }
The issue here is that I still have a couple of centimeters of white space until the end of the screen.
What I am looking at is having the footer sticky a the bottom just for desktops and have the footer align to the bottom of the screen even if only one line of text is there, both for desktop and mobile.
I am absolutely clueless.