cheems
KPCKevin Powell - Community
•Created by cheems on 12/22/2023 in #front-end
Cannot achieve difference between width: 100vw and min-width: 100vw
I made two div containers and gave them width: 100vw and min-width: 100vw respectively. Now I set some nowrap text inside them. According to my understanding, min-width:100vw cannot have less than 100% of the viewport width but it can expand to accommodate the content inside it, but in the code I created, my text just overflows outside the container, why is that? If my technique is wrong, what could be the right way to demonstrate the difference between them and which one I should use as a beginner? Code I created is as follows :
THANK YOU.
6 replies