Uploaded April 2024 | Updated November 2026, 1 day ago
CSS has many quirks, and this is just one example that seems illogical. After we get the height of the window we want with flex-grow, we shouldn't have to set another arbitrary height value... but we do because we can't overflow the window if we haven't set a height. And then flex-grow overrides the set height and fills up the window. It's definitely not straightforward.
π Support me on Patreon β patreon.com/davegray
π» Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
π Discord β discord.gg/neKghyefqh
π Follow Me On Social Media:
GitHub: github.com/gitdagray
X: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
Blog: https://www.davegray.codes/
CSS has many quirks, and this is just one example that seems illogical. After we get the height of the window we want with flex-grow, we shouldn't have to set another arbitrary height value... but we do because we can't overflow the window if we haven't set a height. And then flex-grow overrides the set height and fills up the window. It's definitely not straightforward.
π Support me on Patreon β patreon.com/davegray
π» Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
π Discord β discord.gg/neKghyefqh
π Follow Me On Social Media:
GitHub: github.com/gitdagray
X: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
Blog: https://www.davegray.codes/










