What unit is typically recommended for setting the "line-height" property to ensure consistent spacing?

  • em
  • px
  • rem
  • vh
For setting the "line-height" property to ensure consistent spacing, the recommended unit is typically "em." Using "em" units allows the line height to be relative to the font size, which ensures that the spacing remains consistent even if the text size changes. This is especially useful for creating responsive and accessible web designs.
Add your answer
Loading...

Leave a comment

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