height vw and vh code example
Example 1: vh and vw
/*vh viewport height and vw viewport width*/
/*example*/
div
{
display: inline-block;
height: 100vh; /*THis will set height equal to the height of windows*/
width: 100vw/*This will set width equal to width of windows*/
}
Example 2: what is css vh
CSS VH unit Property
Viewport Height ( vh )
– A percentage of the full viewport height. 10vh will resolve to 10% of the current viewport height. Viewport Minimum ( vmin )
– A percentage of the viewport width or height, whichever is smaller.