Answer the question
In order to leave comments, you need to log in
Mobile layout: layout & viewport, how to make friends?
Hello. I have a question...
There is a layout (mobile version design) with a width of 640px. I made up, of course, with min. the width of all blocks is 640px. But then there were "jokes" with some mobile devices on which the scroll appears - i.e. the page needs to be scaled.
I tried to play with the viewport (set initial-scale, width, etc.), but it turns out some kind of bylocode with ifs)
I'm probably doing something wrong.
How to initially fit the page to the scale of the device ?, even if its width is 540 pixels?
Answer the question
In order to leave comments, you need to log in
For mobile versions, you can’t make a fixed layout, there are too many devices. Use min-width and/or max-width on the media, like so:
And in css use: min-width, max-width, width: auto
Media Queries
I made up, of course, with min. the width of all blocks is 640px.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question