Mar 26, 2021 08:04 AM
(This post was last modified: Mar 26, 2021 08:21 AM by Exalted.)
Alright, so I've been using a high-resolution laptop for a while now and keep getting annoyed by the footer not sticking to the bottom on pages where there isn't enough content.
Here are some examples:
![[Image: JOFjxFb.gif]](https://i.imgur.com/JOFjxFb.gif)
![[Image: fKHQK9T.gif]](https://i.imgur.com/fKHQK9T.gif)
![[Image: 6ttmtfO.png]](https://i.imgur.com/6ttmtfO.png)
Here's some CSS to overwrite this behavior (Needs to be tested on lower-resolution screens):
This will make the footer behave as it should:
![[Image: AErI4bc.gif]](https://i.imgur.com/AErI4bc.gif)
![[Image: 7JkigVZ.gif]](https://i.imgur.com/7JkigVZ.gif)
![[Image: vuo0IdN.png]](https://i.imgur.com/vuo0IdN.png)
Can we get this added to the global CSS file?
If not, I also made this as userscript for the people that also experience this annoyance:
Thanks.
Here are some examples:
![[Image: JOFjxFb.gif]](https://i.imgur.com/JOFjxFb.gif)
![[Image: fKHQK9T.gif]](https://i.imgur.com/fKHQK9T.gif)
![[Image: 6ttmtfO.png]](https://i.imgur.com/6ttmtfO.png)
Here's some CSS to overwrite this behavior (Needs to be tested on lower-resolution screens):
Code
@media (min-width: 768px) {
body{
min-height:100vh;
margin:0;
position:relative;
}
body::after {
content: '';
display: block;
height: 75px;
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
}
}This will make the footer behave as it should:
![[Image: AErI4bc.gif]](https://i.imgur.com/AErI4bc.gif)
![[Image: 7JkigVZ.gif]](https://i.imgur.com/7JkigVZ.gif)
![[Image: vuo0IdN.png]](https://i.imgur.com/vuo0IdN.png)
Can we get this added to the global CSS file?
If not, I also made this as userscript for the people that also experience this annoyance:
Code
// ==UserScript==
// @name HackForums Footer Fix
// @namespace https://hackforums.net/
// @version 0.1
// @description HackForums Footer Fix
// @author Exalted/4541508
// @match https://hackforums.net/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
(function() { 'use strict'; GM_addStyle(`@media (min-width: 768px) {body{ min-height:100vh; margin:0; position:relative; } body::after { content: ''; display: block; height: 75px; } #footer { position: absolute; bottom: 0; width: 100%; }}
`)})();Thanks.



