1CSS VH unit Property
2Viewport Height ( vh )
3– A percentage of the full viewport height. 10vh will resolve to 10% of the current viewport height. Viewport Minimum ( vmin )
4– A percentage of the viewport width or height, whichever is smaller.
1/*
2vh Relative to 1% of the height of the viewport*
3*/
4<!DOCTYPE html>
5<html>
6<head>
7<style>
8h1 {
9 font-size: 20vh;
10}
11</style>
12</head>
13<body>
14
15<h1>Hello</h1>
16
17<p>Resize the height of the browser window to see how the font-size of h1 changes.</p>
18<p>1vh = 1% of viewport height.</p>
19<p>The vh unit is not supported in IE8 and earlier.</p>
20
21</body>
22</html>
23
24/*
25I hope it will help you.
26Namaste
27Stay Home Stay Safe
28*/