¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Why do vertical properties in percentages won't work?
Like if you set your height of the div to "height: 50%;" it will not work but if you change it to pixels like "height: 250px" it will work.
1 Respuesta
+ 2
You can use "vw and vh"
They mean viewpoint's width and viewpoint's height
width: 50vw; is same as width: 50%;
https://code.sololearn.com/W486c884t3Nb/?ref=app