Answer the question
In order to leave comments, you need to log in
Why can't it be comfortable?
Why can't you do something like this, so that if the browser window is reduced/enlarged, the elements on the site, depending on this, would proportionally increase or decrease.
For example, they would make all sites at a resolution of 1920x1080 and when the window was reduced, all elements would automatically shift, shrink, at any resolution ...
You can also come up with such a thing as coefficients that will have a dependence ( 1920 / on the resolution that the user has, suppose (1366) , it turns out the coefficient ~ 1.4 and automatically divide all the element values by this coefficient, isn't it possible to automate this
?
Answer the question
In order to leave comments, you need to log in
Why invent such complex things as media queries and so on?
There is one, discover vw/vh .
And media queries are needed because the arrangement of elements on the 1920 screen will be different from the arrangement on the screen of a mobile phone. You won't cram a video with a width of 1080 and beautiful pictures on the sides, so you need to rebuild the structure (relatively rebuild).
For automatic rebuilding of elements - you can flex + vh / vw.
In this concept, the text will be small to the point of unreadability on phones. Or excessively huge at high resolutions.
If you specified sizes not in px / pt, but in percentages, everything would be fine. Pixels for that and pixels that will look the same everywhere
Why can't you do something like this, so that if the browser window is reduced/enlarged, the elements on the site, depending on this, would proportionally increase or decrease.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question