There are a lot of different units that we can use when writing CSS, in this video I give some general rules of thumb of which ones are best suited for which situations.
Zell’s article on media queries:
Em vs. Rem:
Using clamp() for fonts:
The issue with em with font sizes:
Viewport units:
The ch unit:
#css
—
Come hang out with other dev’s in my Discord Community
💬
—
Keep up to date with everything I’m up to
✉
—
Help support my channel
👨🎓 Get a course:
👕 Buy a shirt:
💖 Support me on Patreon:
—
—
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.
Instagram:
Twitter:
Codepen:
Github:
—
And whatever you do, don’t forget to keep on making your corner of the internet just a little bit more awesome!
source
0 Comments