+ 3
Help me to tune the font size depending on a device the code is running
3 Antworten
+ 19
The best way is to use % for font size.
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.
0
Oh thank you)