![Kevin Powell on X: "If you set padding with ems, it will automatically change when changing the font-size of that element, helping keep the proportions. Play with the code: https://t.co/Molq1UBimB Watch a Kevin Powell on X: "If you set padding with ems, it will automatically change when changing the font-size of that element, helping keep the proportions. Play with the code: https://t.co/Molq1UBimB Watch a](https://pbs.twimg.com/media/EOkPep5WsAERjdz.jpg)
Kevin Powell on X: "If you set padding with ems, it will automatically change when changing the font-size of that element, helping keep the proportions. Play with the code: https://t.co/Molq1UBimB Watch a
![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*L0jtcMWvl4YtFV7KB5-xlg.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)
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
![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)