frontend.fyi

Why You Should Use REM Instead of Pixels

Using REM for main sizes like fonts, margins, paddings, etc is very important for accessibility. By using REM instead of pixels, your sizes will all scale when a visually impaired user sets a custom base font for their browser. This way, these people are also able to enjoy the web the way they deserve!