The em unit in CSS is relative to the ________.
- Body background color
- Font-size of the parent element
- Screen width
- Width of the border
The em unit in CSS is relative to the font-size of the parent element. It's a relative unit, making it valuable for creating scalable and responsive designs. When you set an element's font-size in ems, it's relative to its parent's font-size.
Loading...
Related Quiz
- The ::after pseudo-element in CSS is typically used to ________.
- How would you style only the first list item of an unordered list in CSS?
- An element with float: right; will move to the ________ of its containing element.
- The ::first-letter pseudo-element in CSS targets the ________ of a block-level element.
- The CSS function clamp() restricts a value between a specified ______ and ______.