Check out example codes for "height vh css". It will help you in understanding the concepts better.

Code Example 1

vh	Relative to 1% of the height of the viewport*
<!DOCTYPE html>
h1 {
  font-size: 20vh;


<p>Resize the height of the browser window to see how the font-size of h1 changes.</p>
<p>1vh = 1% of viewport height.</p>
<p>The vh unit is not supported in IE8 and earlier.</p>


I hope it will help you.
Stay Home Stay Safe

Code Example 2

css vs height

Learn ReactJs, React Native from