How to set viewport height and width in CSS



To set viewport height in CSS:

h1 {
   font-size: 4.0vh;
}

To set viewport width in CSS:

h1 {
   font-size: 5.5vw;
}
karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know


Advertisements