DEV Community

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

Collapse
 
khair_al_anam profile image
Khair Alanam

Pretty insightful article on REM and responsiveness! I would also like to add that you can make the font-size responsive without using media-queries by using the clamp() function in CSS.

font-size: clamp(minimum_size, increment, maximum_size);

We set a minimum size for the text, and when we increase the screen size, the increment will do that font size increasing and then it will stop increasing when it reaches the maximum size.

It's supported by all the major browsers (except IE) so it's good to use.

Collapse
 
marcelluscaio profile image
Caio Marcellus Cabral

Excelent, Khair! I am actually going to talk about clamp() on the next article about fluid typography =D

Thank you for reading

Collapse
 
khair_al_anam profile image
Khair Alanam

You're welcome =D