DEV Community

Discussion on: You Probably Don't Need Media Queries Anymore

Collapse
 
murkrage profile image
Mike Ekkel

This nonsense about 'herp, derp, are you still using pixel sizes' -- well, newsflash, using REM is just the same as using an explicty pixel size as far as I can tell. You just write it in a different format.

This is only true if you set the base value to be a pixel value. Ideally you wouldn’t touch it and allow the user to decide the base size. This is 16px by default but fully depends on the size of the text a user has selected.

This is great because larger text requires more whitespace, which is exactly why you would use REM for spacing as well because it scales with the font size of the user!

The mistake developers make is setting the base REM value to be a hardcoded value.

Some comments have been hidden by the post's author - find out more