Answer the question
In order to leave comments, you need to log in
How to display the mobile version of the site correctly?
Hello, I'm having a few issues with the responsive layout. How can they be solved?
1) The display of the mobile version of the site starts with its enlarged version.
Media queries work, but only part of the site is displayed at the beginning, and not the whole site, as intended. The display needs to be reduced, then everything falls into place. (I would like to immediately display the entire site as a whole, and not part of it.) I
use:
media only screen and (min-device-width: 0px) and (max-device-width: 640px)
<meta name="viewport" content="width=device-width, initial-scale=1">
Answer the question
In order to leave comments, you need to log in
Better by viewport via width than via device-width to capture more retina. device-width is when to completely specify the device.
You can, for example, as in Bootstrap.
media screen and (max-width: 767px) { ... }
media screen and (min-width: 768px) and (max-width: 991px) { ... }
media screen and (min-width: 992px) and (max-width: 1199px) { ... }
media screen and (min-width: 1200px) { ... }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question