Languages

CSS - what is difference between width: 100% and width: 100vw?

8 points
Asked by:
Kevin
797

What is the difference between width: 100% and width: 100vw in CSS?

1 answer
5 points
Answered by:
Kevin
797

The vw values stand for viewport width.

Here is the main difference: 

  • width: 100vw means 100% of the viewport width,
  • width: 100% means 100% of the parent's element width.

 

See also

  1. CSS - 100vw meaning 
0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join