We’ve all had those websites that have a floating footer. As long as you have enough content on the page, it looks great, but for shorter pages or taller screens, your page doesn’t take up the full page height.
I use a single class and about 9 lines of Javascript to always make sure all of my pages always take up the full page height on any device.
Codepen: https://codepen.io/Coding-in-Public/p...
Watch video Update Page Height with Javascript + CSS Variables online without registration, duration hours minute second in high quality. This video was added by user Coding in Public 20 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,664 once and liked it 40 people.