How would changing the CSS unit from em to rem affect the scaling of a website's typography on different devices?

  • It would have no effect on typography scaling.
  • Typography scaling would become device-independent.
  • Typography would scale based on the parent element.
  • Typography would scale based on the root element.
Changing the unit from em to rem in CSS affects typography scaling by making it relative to the root element rather than the parent. This ensures consistent scaling across the entire website, making it more device-independent.
Add your answer
Loading...

Leave a comment

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