Answer the question
In order to leave comments, you need to log in
How do you feel about using viewports as the primary unit of measure?
Somehow I made up a site and decided to use only vw, vh and this gives certain advantages, for example: at different resolutions (zooming, etc.), the site looks the same.
How do you feel about using viewports as the main unit of measurement for layout, that is, setting fonts, block sizes, etc.?
Answer the question
In order to leave comments, you need to log in
vw vh should be used in quite rare cases when you need to make a modal window 100% of the window height, for example. For everything else - they are poorly applicable. Personally, I use it only for pop-up banners, modals and other similar solutions. I don't see the point anywhere else.
Personally, I'm bad. These are not fixed units. I don't need everything to become rubber, like fonts and blocks. I have a layout in which the title font is 40px. When using relative units, the size will be different on different monitors, what is it for me? Undoubtedly, these units can and should be used in a responsive site, but only when necessary.
vw vh is very convenient to use for blocks where scrolling is needed (such as mobile navigation or modals as written above)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question