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

Leave a comment

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