How can I make the font size be relative to the screen resolution? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I make the font size be relative to the screen resolution?

How can I make the font size be relative to the screen resolution?

30th Sep 2017, 8:17 PM
André Campos
André Campos - avatar
2 Answers
+ 1
use breakpoints using @media queries and rem units
30th Sep 2017, 8:45 PM
Amr Ibrahim Khudair
Amr Ibrahim Khudair - avatar
+ 7
https://www.w3schools.com/cssref/css_units.asp check out the Relative Lengths section ;)
30th Sep 2017, 8:22 PM
Burey
Burey - avatar