Which CSS unit is relative to the root element's font size?
- em
- px
- rem
- vw
The rem unit in CSS is relative to the root element's font size, which makes it a practical choice for creating responsive layouts. Unlike em, which is relative to the font size of its nearest parent, rem is always relative to the font size of the root (html) element.
Loading...
Related Quiz
- How do you position an item in the third row and second column of a grid?
- What is the main advantage of using SCSS over plain CSS?
- To ensure that fonts are loaded from the same origin, you can use the ________ HTTP header.
- Which CSS property is typically used to set breakpoints in responsive design?
- You're designing a button that, when clicked, shows a loading spinner. The spinner should rotate continuously. Which properties are crucial for this effect?