Answers for "what are the viewport based units in html"

3

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*/
}
Posted by: Guest on September-02-2020
0

what are the viewport based units in html

The viewport based units are:
vh , vw , vmin, vmax .
Posted by: Guest on September-10-2020

Browse Popular Code Answers by Language