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...
Смотрите видео Update Page Height with Javascript + CSS Variables онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Coding in Public 20 Июль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,664 раз и оно понравилось 40 людям.