Answer the question
In order to leave comments, you need to log in
Are intermediate values needed in Media Queries?
Greetings.
For example, there is a layout with the following dimensions:
max-width: 1400px;
min-width: 1000px;
width: 100%;
@media only screen and (max-width : 1366px) {.....}
@media only screen and (max-width : 1280px) {.....}
@media only screen and (max-width : 1024px) {.....}
Answer the question
In order to leave comments, you need to log in
There are so many screen resolutions now that it makes no sense. You just need to take the browser window, and reduce (or increase), tracking the reaction. If at some stage you need to regroup elements, resize, etc. - then for this permission, put a block and so on ... In a word, only as needed. The fact that you put several blocks under some standard permissions will not save you.
Media queries are good when you are comfortable with layout in intermediate values. Let me give you an example: if your page is a class="cont" container with a certain width, located in the middle of the screen, then you can make it three widths through media queries, and on the fourth width make all blocks in a column (for mobile browsers) .
If you are making a rubber page, then you don’t need media queries here in the first place, but first of all, you need to set the size in percent.
Even if you list all page sizes (which is not realistic), then do not forget about those cases when the user's browser is not full screen.
Why do you need media queries here?
Specify the dimensions in percent when layout and that's it. When you change the screen size, everything will proportionally decrease and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question