Maintain fonts size with different screen resolutions

Issue

What is the best practice/solution to maintain fonts size with different screen resolutions?

Solution

You can’t do that without access to information about the clients system, DPI and resolution. The best you can do in CSS is probably to use the em unit when dealing with font sizes, as it is in relation to the users default font size.

font-size: 0.8em; 

Means that the font is 80% of the default font.

Answered By – Jesper Fyhr Knudsen

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published