Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Feedback 

Footer not at bottom of the page where there isn't enough content [Fix included]

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]

[Image: fKHQK9T.gif]

[Image: 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]

[Image: 7JkigVZ.gif]

[Image: 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.
We'll review your adjustment.

Thanks for reporting.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by flavoralJan 11, 2021 08:50 AM 7 281 Jan 11, 2021 08:50 AM
Last Post: Xerotic
[Feedback] by ExaltedJul 24, 2020 04:04 AM 18 837 Jul 24, 2020 04:04 AM
Last Post: Exalted
by ThreatOct 4, 2019 05:42 PM 4 220 Oct 4, 2019 05:42 PM
Last Post: Omniscient