How to set viewport height and width in CSS

Front End ScriptsWeb DevelopmentJavascript

To set viewport height in CSS:

h1 {
   font-size: 4.0vh;
}

To set viewport width in CSS:

h1 {
   font-size: 5.5vw;
}
raja
Updated on 30-Jan-2020 08:45:52

Advertisements