Should I use px or rem units in CSS?
In the fifteen years since rem was introduced, I've heard many variants of the question:
What CSS units should I be using here,
pxorrem?
Now, there are a lot of other options to consider as well:
- ch
- cm
- em
- ex
- in
- lh
- mm
- pc
- pt
- Q
- vh
- vmax
- vmin
- vw
Many of these options are useful in a variety of different circumstances, but I'm going to intentionally ignore them for purposes of this post.
