L
L
LissaAlbatross2019-08-04 22:02:16
Adaptive design
LissaAlbatross, 2019-08-04 22:02:16

Why is the em font different for different screens?

On a small resolution - large, and on large - small? How to set the font once for different screens so that it doesn't "run"?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Neverov, 2019-08-04
@LissaAlbatross

There are several types of units of measure in CSS. Like, px, em, % and rem. There are probably more, but these are the main ones.
Moreover, there are 27-inch screens with a resolution of 1280x720 pixels. And there are screens of 27 inches with a resolution of 1920x1080. On the second, the text will be smaller than on the second simply because of the number of pixels on the screen available.
On phones, browsers usually take 1 pixel as 2-4-8 real pixels. How to "enlarge" the page for a more convenient human perception.
Related articles:
https://getinstance.info/articles/css/css-font-sizing/
https://developer.mozilla.org/ru/docs/Web/CSS/@media

T
Talyan, 2019-08-04
@flapflapjack

1) use media queries in CSS for example And, yes. Not the extensions are different, but the permissions are different. The monitor has a resolution. The file has an extension. @media (max-width: 768px)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question