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
Published on 13-Apr-2018 08:13:16
Advertisements