DEV Community

Discussion on: Which units of measure do you use and why in CSS?

Collapse
 
keinchy profile image
Frederick Jaime

should be REMs. EMs are relative to the element and will have some expected results when nesting. Pixel fonts are not reliable when zooming in.

I normally use SASS and have a little mixin that does the calculation from px to rem, so you can add your base font size and then add with px and it will spit out rems.

REMs baby!!!

Collapse
 
equinusocio profile image
Mattia Astorino

Update it to the responsive typography formula.