You have an element inside a container. The container has a font-size of 20px. If you set the child element's font-size to 1.5em, what will be its computed font-size?
- 10px
- 15px
- 20px
- 30px
When you set the child element's font-size to 1.5em, it multiplies the parent element's font-size. In this case, 1.5em x 20px = 30px. So, the computed font-size of the child element will be 30px.
Loading...
Related Quiz
- Which extension is used for SCSS files?
- The CSS unit vh represents a percentage of the ________.
- How does the "line-height" property affect the vertical spacing of a block of text?
- If you want an animation to run indefinitely, which value would you set for the animation-iteration-count property?
- How would you use the attr() function to get the value of a data attribute in CSS?