Chris Staudinger on X: "CSS em vs rem explained 🎨👇 Both em and rem are relative units of measurement used in frontend development. em is relative to the font size of the
![Control font sizes, line spacing, and word spacing - Build Your First Web Pages With HTML and CSS - OpenClassrooms Control font sizes, line spacing, and word spacing - Build Your First Web Pages With HTML and CSS - OpenClassrooms](https://user.oc-static.com/upload/2018/04/30/15251064835155_fontsizes.png)
Control font sizes, line spacing, and word spacing - Build Your First Web Pages With HTML and CSS - OpenClassrooms
![Why designers should move from px to rem (and how to do that in Figma)-Update | by Christine Vallaure | UX Collective Why designers should move from px to rem (and how to do that in Figma)-Update | by Christine Vallaure | UX Collective](https://miro.medium.com/v2/resize:fit:1400/1*RbRKlfEuTyRL4e2DIpN_zg.png)
Why designers should move from px to rem (and how to do that in Figma)-Update | by Christine Vallaure | UX Collective
![Why designers should move from px to rem (and how to do that in Figma) | by Christine Vallaure | UX Collective Why designers should move from px to rem (and how to do that in Figma) | by Christine Vallaure | UX Collective](https://miro.medium.com/v2/resize:fit:1400/1*X0OzlPZwhXHI4WBI4J_xOw.jpeg)
Why designers should move from px to rem (and how to do that in Figma) | by Christine Vallaure | UX Collective
![Why designers should move from px to rem (and how to do that in Figma) | by Christine Vallaure | UX Collective Why designers should move from px to rem (and how to do that in Figma) | by Christine Vallaure | UX Collective](https://miro.medium.com/v2/resize:fit:1400/1*fmQL30oxhkmjYdy9taPiBg.jpeg)
Why designers should move from px to rem (and how to do that in Figma) | by Christine Vallaure | UX Collective
![css - rem works fine with font-size but does NOT work fine with margin if I set 10px font-size to html tag - Stack Overflow css - rem works fine with font-size but does NOT work fine with margin if I set 10px font-size to html tag - Stack Overflow](https://i.stack.imgur.com/pMXyM.png)