Which CSS units are considered to be relative units that allow for responsive designs?

  • em, rem
  • in, mm
  • pt, pc
  • px, cm
em and rem are relative units in CSS, enabling responsive design. Unlike absolute units like px, em and rem adapt to the font size of the parent or root element, respectively. This flexibility makes them valuable for creating layouts that adjust to different screen sizes and user preferences.
Add your answer
Loading...

Leave a comment

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