Height and width | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Height and width

I've taken two quizzes recently with similar questions along the lines of "is width=50% the same as width=50" and in html5 I know you can input the width value as just "50" but in other cases you can not. What are the exceptions to this rule?

25th Jul 2019, 7:30 PM
Tholoana MĆ¼ller
Tholoana MĆ¼ller - avatar
2 Respostas
+ 1
50 (or 50px) and 50% is not the same. The % depends on the width of the window/screen. https://code.sololearn.com/W1FzBa6C06ok/?ref=app
27th Jul 2019, 10:37 AM
dozule
dozule - avatar
+ 1
Oh okay šŸ‘šŸµ
27th Jul 2019, 10:41 AM
Tholoana MĆ¼ller
Tholoana MĆ¼ller - avatar