Tell us what’s happening:
Answer should be px, %, and viewport (vw | vh).
not px, % and “EM”
Question:
Which of the following units can be used to set the width or height of an element?
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Challenge Information:
What Is CSS? - How Do Width and Height Work?
Hi @ScottRoemmich and welcome to our community!
From the video transcript:
These properties can be defined in different units such as pixels (px
), percentages (%
), viewport units (vw
, vh
), and more.
This is not an exhaustive list. You can also set element dimensions using em
or rem
for instance. So, the answer given in the quiz is correct.
ILM
3
campers have not yet met em
and rem
here, so maybe it’s a good idea to change the answer
could you create a github issue?
1 Like
I have opened an issue for this, as requested: