DEV Community

Discussion on: Using REM Doesn't Make Your Website Responsive - Here's Why

Collapse
 
marcelluscaio profile image
Caio Marcellus Cabral

Sorry, but that is not the case.

They do scale font with zoom, but if you set your font to pixels they are not going to adapt it to the user's font preferences.

So, you should not set your font size in pixels.

And I know it takes a while to adapt to writing in REM, but you eventually get used to it =)

And yeah, pixel actual size varies from device to device, due to screen density.

Collapse
 
devdufutur profile image
Rudy Nappée

What difference do you make between browser zoom and user preference ? Can you provide an example ? Thanks

Thread Thread
 
marcelluscaio profile image
Caio Marcellus Cabral

Changing the default size is like this: chromestory.com/2022/09/change-tex...

On the other hand, when you zoom in, browser adapts content, unless it is related to viewport size.

Again, using REM is not outdated in any way.

Thread Thread
 
devdufutur profile image
Rudy Nappée

Thanks for the precision, didn't knew this feature.