geoffrich, 1 month ago Like, the whole deal with rem is it's relative to the root, so I'm not sure there's a good way. But em is too relative, since I don't want it relative to each child's parent. for why rem is preferred over px, see these articles from Josh and Josh: https://joshcollinsworth.com/blog/never-use-px-for-font-size https://www.joshwcomeau.com/css/surprising-truth-about-pixels-and-accessibility/
Like, the whole deal with rem is it's relative to the root, so I'm not sure there's a good way. But em is too relative, since I don't want it relative to each child's parent.
for why rem is preferred over px, see these articles from Josh and Josh:
https://joshcollinsworth.com/blog/never-use-px-for-font-size https://www.joshwcomeau.com/css/surprising-truth-about-pixels-and-accessibility/