Yeah apparently rem/em should be avoided in spacing because then everything will scale proportionally to the font size which is the same as just zooming in/out.
rem won't scale to the font size unless the root font size (and therefore everything on the page) changes, in which case you should treat it as zooming in/out.
They are all good with responsiveness as you can use media queries to define the font-sizes at different breakpoints. However, rem gets credit for the way accessibility is handled.
Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
Yes, REM isn't ideal when padding comes into play, because if the user or developer changes the root size settings, the padding will also change if it is given in REM, and our page structure will be compromised.
Web Dev full-stack [LAMP] since 2005, but much heavier on the JS stuff these days.
Jack of all Stacks, Master of some.
Always looking to learn new things. Always glad to help out, just ask.
Location
Atlanta, GA
Education
B.S. in Biochemistry 2004, M.S. in Computer Information Systems 2007
Great write up, but you didn't cover when to use VW for font sizes.
And if you've never used VW for font sizes...well, you haven't lived yet...or gone crazy...
Yeah apparently rem/em should be avoided in spacing because then everything will scale proportionally to the font size which is the same as just zooming in/out.
rem won't scale to the font size unless the root font size (and therefore everything on the page) changes, in which case you should treat it as zooming in/out.
Yes, rem wouldn't scale unless the root font size changes
this was genuinely such a fun and insightful read! 😄 thank you for this
Thank you for taking the time out to read it 😄
That was one of the best discussions I’ve read on this subject. Thanks.
I'm happy you enjoyed it 😅
If I wanna male a responsive website, is 'rem' better in most cases? I'm looking forward to the next post(padding)!
They are all good with responsiveness as you can use media queries to define the font-sizes at different breakpoints. However, rem gets credit for the way accessibility is handled.
Thanks for the answer :)
It just depends on the use-case at the end 😅
This was a nice Sunday read 👏🏾
Thanks. I'm glad you enjoyed it 🤲🏾
Yes, REM isn't ideal when padding comes into play, because if the user or developer changes the root size settings, the padding will also change if it is given in REM, and our page structure will be compromised.
Great write up, but you didn't cover when to use VW for font sizes.
And if you've never used VW for font sizes...well, you haven't lived yet...or gone crazy...
I had no idea veiwport units were used for typography. Defnitely trying this tonight 😂