If you set the font-size to 2rem, how is this size calculated relative to the root element's font size?

  • Twice the root element's font size
  • Two times the computed font size
  • Two times the initial font size
  • Two times the parent element's font size
When using 'rem' unit, the font size is calculated relative to the root element's font size. In this case, 2rem means two times the root element's font size. Understanding this relationship is crucial for responsive design.
Add your answer
Loading...

Leave a comment

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