A
A
Alena2014-03-23 13:28:32
HTML
Alena, 2014-03-23 13:28:32

How to ensure the normal display of fonts on a site with a fixed width in mobile devices?

With the adaptation of sites for mobile faced, there were no problems. There was a task to make a fixed-width site, and there were questions about fonts.
Such a problem: the font size on the page is set in px, I don’t want it to scale somehow on mobile devices, only if the user wants to increase the page on the screen on his own. But on a 7" Android tablet, for example, the following happens:
1.png
This is the view from the tablet. The panel is positioned absolutely, the font has increased, the layout has moved down.
Although the font is 16px, the panel should be located below the text, but here it took more height than calculated. Everything else Oddly enough, it scales just fine.
Please help, what am I missing and how can I fix it? The problem is not only with this page, there are just blocks of a given size in which the text is placed. Because of this behavior of the font, again, everything looks bad.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Lobanov, 2014-03-23
@pandaWarrior

Perhaps specifically on this device, the font scale settings have been changed. Do you drop styles?

K
Konstantin Velichko, 2014-03-23
@Zoxon

Add to head

<meta name="viewport" content="width=device-width,minimum-scale=1.0"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question