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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *