News for hackers. Stuff that matters.
Re:What is the Difference between px, rem and em? by kaapipo on Tuesday November 15, 2022 @07:26AM (#33608286)
I have always thought `em` is the line height?

I didn't know about `ch` and `ex`, I'm gonna try them

Re:What is the Difference between px, rem and em? by chrismorgan on Tuesday November 15, 2022 @08:14AM (#33608733)
The default line height is defined by the font (and the browser may influence it in other ways too?), but it’s distinct from the em. (It’s easy to try in a browser. I see values like 18.78px and 19.33px and 21.67px on my 16px text.)