Update Page Height with Javascript + CSS Variables

Published: 20 July 2021
on channel: Coding in Public
1,664
40

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...


On this page of the site you can watch the video online Update Page Height with Javascript + CSS Variables with a duration of hours minute second in good quality, which was uploaded by the user Coding in Public 20 July 2021, share the link with friends and acquaintances, this video has already been watched 1,664 times on youtube and it was liked by 40 viewers. Enjoy your viewing!