Maintain font sizes with different screen resolutions

What is the best practice / solution for supporting font sizes with different screen resolutions.

+3
source share
2 answers

You cannot do this without access to client system information, DPI, and resolution. The best thing you can do in CSS is probably to use a block emwhen working with font sizes, as this relates to the user's default font size.

font-size: 0.8em; 

Font means 80% of the default font.

+3
source

, DPI . CSS "" "" , DPI 72 96 ( ).

, . DPI , DVI, CSS JavaScript. ? , , ?

Mac OS X " ", . , .

+1

Source: https://habr.com/ru/post/1734790/


All Articles