H
H
hujak_hujak2021-06-23 23:55:25
css
hujak_hujak, 2021-06-23 23:55:25

Why is Chrome ignoring the viewport?

Hello, I want a non-responsive site to load without scaling, for this I wrote the following code:

<meta name="viewport" content="width=device-width">

The site is displayed in the Yandex browser, in safari in ios, in firefox the way I need (fig. on the left), and in chrome it is displayed on the first visit with zoom (as in the right figure). Tell me how can I solve this?
m0ea.myjino.ru - site for the test.
60d39f9292647531456724.jpeg
But for example on this site https://old-duck-barbershop.ru/ - here chrome works fine with the viewport. From there, I actually took it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
strelok011, 2021-06-24
@strelok011

specify initial-scale

<meta name="viewport" content="width=device-width, initial-scale=1">

And yet - it is clear that your viewport is working correctly, otherwise your entire page would be displayed on the screen and very small.
You need to either adjust the viewport with the desired scaling (this is evil, it’s very hard to manage), or make the correct adaptive - for a width from 340 to 600 (for example) - specify the font size and image different from the desktop.
You need manual work, on the machine - play with the percentage of scaling (if it works, to be honest, I didn’t indulge in such perversion)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question