What is the rem unit based on?

Advertisement

  • The rem unit is relative to the font-size of the p element.
  • You have to set the value for the rem unit by writing a declaration such as rem { font-size: 1 Spx; }
  • The rem unit is relative to the font-size of the containing (parent) element.
  • The rem unit is relative to the font-size of the root element of the page.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend