DEV Community

Discussion on: CSS Tips: Relative units with EM and REM

Collapse
 
nicozerpa profile image
Nico Zerpa (he/him)

When it comes to font sizes, "rem" units are very useful for accessibility. Some people with vision problems increase the default font size in their browser settings to read texts better.

However, this doesn't affect texts that have their size set in px. If you use em for font sizes, the text will adjust to the browser settings and everybody will be able to read the content.

Collapse
 
fariasmateuss profile image
Mateus V. Farias

Awesome 🤩