>Looking to step up your CSS game? πŸ‘‰ https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=viewportunits I have a bunch of courses, including several free ones.

I see people use `vh` a lot, and then complain that it doesn’t work the way they thought it would, so in this one, I explore a few other options that we have, which are `dvh`, `svh`, and `lvh`. Along with these, you could also use `dvb`, `svb`, and `lvb`, which are the logical property version of the height units, but for the block-size.

πŸ”— Links
βœ… The example page: https://viewport-unit-test.netlify.app/
βœ… The GitHub repo: https://github.com/kevin-powell/viewport-unit-test
βœ… Up to date browser support: https://caniuse.com/mdn-css_types_length_viewport_percentage_units_dynamic

#css

Come hang out with other dev’s in my Discord Community
πŸ’¬ https://discord.gg/nTYCvrK

Keep up to date with everything I’m up to
βœ‰ https://www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
πŸ“Ί https://www.twitch.tv/kevinpowellcss

Help support my channel
πŸ‘¨β€πŸŽ“ Get a course: https://www.kevinpowell.co/courses
πŸ‘• Buy a shirt: https://teespring.com/stores/making-the-internet-awesome
πŸ’– Support me on Patreon: https://www.patreon.com/kevinpowell

My editor: VS Code – https://code.visualstudio.com/

I’m on some other places on the internet too!

If you’d like a behind the scenes and previews of what’s coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell

And whatever you do, don’t forget to keep on making your corner of the internet just a little bit more awesome!

Support the Hairy Eyeball

Share this on