CSS units confusion

Hey I was you use rem, em this type of unit I only know % and px can you pls make a tutorial explaining all the common units it would be really helpful for us beginners with 1 brain cell
7 Replies
Jochem
Jochem2y ago
Kevin Powell
YouTube
Are you using the right CSS units?
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: https://zellwk.com/blog/media-query-units/ Em vs. Rem: https://youtu.be/_-aDOAMmDHI Using clamp() for fonts: https://youtu.be/U9VF-4euyRo The ...
Curious Wanderer
No, I saw that earlier I mean to explain each unit not what to use
Mahesh
Mahesh2y ago
@Curious Wanderer he already has video on it.
Curious Wanderer
Can you link it please
Mahesh
Mahesh2y ago
Kevin Powell
YouTube
CSS em and rem explained #CSS #responsive
A look at the CSS units EM and REM, how they work and when you might want to use one over the other! First I take a look at some basic examples of both ems and rems, then move onto some more interesting things with buttons and a call to action, as well how we can take advantage of both the em and rem with media queries. The way the em unit is ...
Mahesh
Mahesh2y ago
Kevin has made many videos on css units and responsiveness. If you go to his channel and watch them all you will be able to understand all about it.
Curious Wanderer
Thanks