Answer the question
In order to leave comments, you need to log in
How to fit the actual page width into the available device width?
It looks like an elementary task, but it does not work. Tell me please.
There is a page. The body is set to min-width = 450px
How can I make the scale shrink so that the entire page width fits the width of the device when opened on a device with a width of 320px?
This is how it didn't work:
<meta name="viewport" content="width=device-width">
Answer the question
In order to leave comments, you need to log in
To do nothing. Then the devices themselves will compress the page.
in any case, you need to dance from
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Of course, if you set the size of the container to a smaller size, then the content will "leak out" due to the fixed sizes.
You need to create an mq point where you resize both the container and the content.
And I advise you to indicate with such a width as a percentage, if the design allows.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question