DEV Community

Discussion on: Font Size:em,rem,pixel or percent?

Collapse
 
paras594 profile image
Paras 🧙‍♂️

if 62.5% results in 10px, how does it make the font responsive ? isn't it still fixed until and unless we add media query and change the font size ?

Collapse
 
j836 profile image
Prajwal Jain

Thank You for your response Paras!
Actually, I wanted to tell that, use 62.5 % in media queries in html for font-size.
That way, wherever you had given larger fonts-sizes it will automatically shrink.
Hope this clears the point.

Collapse
 
paras594 profile image
Paras 🧙‍♂️ • Edited

Ohh ... that surely works and I use that way too. Thank youu !! :)