Height and width | Sololearn: Learn to code for FREE!
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 Réponses
+ 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