+ 3

Help me to tune the font size depending on a device the code is running

https://code.sololearn.com/WEULeSGwzI9h/?ref=app

26th Oct 2018, 2:26 PM
ŠŠ»ŠµŠŗсŠµŠ¹ Š’Š°ŃŠøŠ»ŃŒŠµŠ²
ŠŠ»ŠµŠŗсŠµŠ¹ Š’Š°ŃŠøŠ»ŃŒŠµŠ² - avatar
3 Answers
+ 19
The best way is to use % for font size.
26th Oct 2018, 5:35 PM
###
0
Honestly, even though there is more standardization than there used to be, font sizes will look differently depending on the browser you are using. For example '1em' font size may be a different size in IE, Edge, Chrome, FireFox etc. So it's hard to get a baseline size to start from so that all browsers agree. Best thing I can say is to test test test on as many devices/browsers as you can to see your results. If want to change the style based on the screen size of the device you can do that using conditionals in CSS.
26th Nov 2018, 4:31 AM
Logan
Logan - avatar
0
Oh thank you)
26th Nov 2018, 4:48 AM
ŠŠ»ŠµŠŗсŠµŠ¹ Š’Š°ŃŠøŠ»ŃŒŠµŠ²
ŠŠ»ŠµŠŗсŠµŠ¹ Š’Š°ŃŠøŠ»ŃŒŠµŠ² - avatar