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 odpowiedzi
+ 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