4 ms·
Yes, prefer rem. em is fraught with peril especially once you get to deeply nested elements.
by cantSpellSober 2y ago
Yes, prefer rem. em is fraught with peril especially once you get to deeply nested elements.
- deleted 2y ago[deleted]
- lobsterthief 2y agoI mean, em and rem serve different purposes. Like let’s say you want to append a permalink icon to different headings, you can scale its size easily based on the size of the heading it’s attached to. This is when em comes in and rem makes no sense. Unless you want to keep the icon the same size regardless, in which case rem makes the most sense.