HTML & CSS · Junior · Question 24 of 75

What is 50vw equal to?

Explanation

vw is 1% of the viewport width, vh is 1% of its height. Percentages (%) depend on the parent. Caveat: 100vw includes the vertical scrollbar width and may cause horizontal scrolling, and on mobile 100vh ignores the collapsing browser toolbar - that's what dvh is for.

Further reading

Problem with a question

HTML & CSS · Junior · question 24

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz