Join Nostr
2025-09-05 07:22:06 UTC

kaiserkiwi :kiwibird: on Nostr: I still think em is not the right unit to define letter-spacing in #CSS. It's based ...

I still think em is not the right unit to define letter-spacing in #CSS.

It's based on the height of an upper case letter in the currently used font. We're working horizontally with letter-spacing.

For this reason I work with the ch unit here for years now and the results are feeling much better and especially more predictable.

Am I missing something or why is it that the majority seems to stick with em? I mean ch exists in all major browsers for 12 years now.

(For clarity: The ch unit is based on the character 0 in the currently used font)

#Coding #WebDev