D
D
del9937882017-07-03 23:42:45
css
del993788, 2017-07-03 23:42:45

How to make smaller layout render on mobile devices?

Hello. It's no secret that, despite the high screen resolution of mobile devices, the browser of mobile devices displays layouts of other sizes. So, for example, iPhone 7 with its fullhd screen displays a layout of 375 pixels.
I made a website and realized that the minimum width of my website is 533 pixels. It makes no sense to type up further, because the whole meaning of the site is collapsing. So I have media only screen and (min-width : 533px) . But if in the browser (in inspector mode) you open my site in iphone 7 mode, then the site will not be displayed correctly, since it has a size smaller than 533.
Tell me how to make it so that devices that have (or their own) when rendering resolution less than 533 displayed layout at 533?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
monochromer, 2017-07-04
@del993788

Via JavaScript check screen sizes and dynamically change viewport tag
https://www.quirksmode.org/blog/archives/2011/06/d...

I
Ivan, 2017-07-03
@LiguidCool

https://developer.mozilla.org/en-US/docs/Web/CSS/M...
shpargalkablog.ru/2013/06/layout.html

V
Vladimir, 2017-07-04
@Casufi

https://developer.mozilla.org/en/docs/Mozilla/Mobi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question