vh and vw
suggest changeCSS3 introduced two units for representing size.
vh, which stands forviewport heightis relative to 1% of the viewport heightvw, which stands forviewport widthis relative to 1% of the viewport width
div {
width: 20vw;
height: 20vh;
}
Above, the size for the div takes up 20% of the width and height of the viewport
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents