DEV Community

Discussion on: What CSS font-size units do you prefer to use?

 
andrewbaisden profile image
Andrew Baisden • Edited

Take a look at the post by Minh Nguyen on here and also this Pixels vs. Relative Units in CSS: why it’s still a big deal It makes a difference 😊

Thread Thread
 
rtivital profile image
Vitaly Rtishchev

Yep, I get that rem units have purpose, still I think that if you intent to support rem as a feature on your website then it's your responsibility to test out how it performs with scaled fonts – providing broken ui is worse than providing small ui that can be upscaled.

Thread Thread
 
andrewbaisden profile image
Andrew Baisden

Testing has always been a part of my development process its to be expected when you are building a website. Working with pixels is exactly the same it is not limited to rem. Some developers prefer rem whereas some prefer pixels as you can see from this discussion. Thats the great thing about being a developer the freedom of choice. πŸ™‚

Thread Thread
 
93alan profile image
Alan Montgomery

I back you Andrew, I use rem for everything. Fonts, margins, padding, width, height. Scales better with respnsiveness