What is the rem unit based on?

  • 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

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