DEV Community


Discussion on: What CSS font-size units do you prefer to use?

jcolag profile image
John Colagioia (he/him)

I generally put everything (font and not) in ems. The unit has been around pretty much forever, keeps everything in proper proportions, and gives the end user more flexibility in overriding the overall sizes. The root sometimes gets a px size and thin borders are 1px, but everything else feels like it should just scale.