Which unit of measurement in CSS is relative to the font-size of the parent element?

  • %
  • em
  • px
  • rem
In CSS, the 'em' unit is relative to the font-size of the parent element, providing a scalable and flexible way to define sizes. 'px' is fixed, 'rem' is relative to the root element, and '%' is a percentage of the parent element's font-size.
Add your answer
Loading...

Leave a comment

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