DEV Community

Discussion on: What is a problem you constantly have with CSS, or something you keep wanting to learn how to do?

Collapse
 
anshulnegitc profile image
Anshul Negi

No that's not what I meant.
It's regqrding the units use px,vh,vw,rem,em etc.
For font size I can use px, rem, em but don't know why to choose particular unit.

Thread Thread
 
5t3ph profile image
Stephanie Eckles

Gotcha! Then the article I linked will provide some additional info on spacing for typography and other scenarios: Guide to CSS Units for Relative Spacing

Thread Thread
 
anshulnegitc profile image
Anshul Negi

Thanks