Is sizing fonts using “em” still relevant?

后端 未结 8 1794
-上瘾入骨i
-上瘾入骨i 2020-12-22 14:51

Those of you who use em when sizing fonts will know that they can be a headache when dealing with nested elements, and having to make the px -> em

8条回答
  •  情书的邮戳
    2020-12-22 15:53

    I never use pixel sizes for fonts in any program (except Photoshop I suppose, since it just had it in pixels by default). I've always used point size (such as in Word) and have since moved to scaling relatively in CSS with em. I set the body font-size then scale using em.

    Maybe I'm just used to knowing how big point sizes are on screen and in print. I can never guess the size of a pixel font height so I don't use it.

提交回复
热议问题