You are designing a website for accessibility and need to ensure that text can be resized without breaking the layout. Which CSS units should you consider using for font sizes to achieve this?

  • em
  • px
  • rem
  • vw
To achieve text resizing without affecting layout, using relative units like rem (root em) is ideal. Unlike em, which is relative to the parent, rem is always relative to the root element. This ensures consistent scaling throughout the page, promoting accessibility.
Add your answer
Loading...

Leave a comment

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