0

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.

2nd Mar 2018, 12:55 PM
Pilas
Pilas - avatar
1 Resposta
+ 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
11th Apr 2019, 2:10 PM
Mario
Mario - avatar