+ 6

What is vh and vw

I've seen develpers using vh and vw to adjust height and width of Font and other element but I don't know what are these. So Please explain this

11th Jan 2019, 4:46 AM
Devender Kumar
Devender Kumar - avatar
1 ответ
+ 9
These are viewport units, i.e. viewport height (vh) and viewport width (vw). It specifies the height and width of an element relative to the viewport (browser). The difference between these units and % is that the former is relative to the viewport and the latter is relative to the parent height/width.
11th Jan 2019, 4:58 AM
Hatsy Rei
Hatsy Rei - avatar