A designer wants to ensure that the spacing between paragraphs remains proportional to the user's default browser font size. Which CSS unit should they use to define the margin and padding of the paragraphs?
- %
- em
- px
- rem
The 'em' unit is relative to the font-size of the element, providing a proportional measure. It's suitable for maintaining spacing relative to the user's default font size.
Loading...
Related Quiz
- The CSS property text-transform can be used to change the text to ________.
- The CSS pseudo-class :not() allows you to target elements that ________ a specific criteria.
- When using CSS to mask an element, the area defined by the mask image that is ________ will be visible.
- What does specificity determine in CSS?
- You need to remove the default bullet points and apply a custom image as the bullet for each list item in an unordered list. How would you achieve this in CSS?