DEV Community 👩‍💻👨‍💻

Discussion on: Width: 100% VS. width: 100vw

mikeott profile image
Michael O • Edited on

I don't think there is a right or wrong answer to that question. I've always used 100% without any dramas, but I'd imagine that if I changed all instances of 100% to 100vw it would be fine.

Thread Thread
mandaputtra profile image
Manda Putra

If i dont specify my body to 100vh and 100vw why some width: 100%; and height: 100%; wont work?

Is there a way to make my body always 100% height and 100% width?