C
C
Cube2017-07-06 10:11:12
css
Cube, 2017-07-06 10:11:12

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

4 answer(s)
A
Alexey Sklyarov, 2017-07-06
@0example

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.

D
Dima Pautov, 2017-07-06
@bootd

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.

Y
Yunus Gaziev, 2017-07-06
@BBoyJuss

vw vh is very convenient to use for blocks where scrolling is needed (such as mobile navigation or modals as written above)

R
Raphael™, 2017-07-06
@maxminimus

basic units of measure - px and %
sometimes - em
I don't use the rest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question