0

What's difference btw 100% & 100vh/vw in CSS

Hey there, I wanna know that what's the difference between 100% and 100vw/vh in CSS. When and why we can use it.

1st Apr 2023, 6:48 AM
Adarsh Addee
Adarsh Addee - avatar
2 odpowiedzi
+ 7
Here is the main difference: height: 100vh means 100% of the viewport height, height: 100% means 100% of the parent's element height
1st Apr 2023, 6:55 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 2
Hasnain [ACTIVE CHALLENGER] thank you for your answer
1st Apr 2023, 6:58 AM
Adarsh Addee
Adarsh Addee - avatar