You're designing a webpage where you want to ensure that the distance between lines of text is 1.5 times the size of the text. How would you achieve this using CSS?

  • line-height: 1.5em;
  • line-height: 1.5x;
  • line-height: 150%;
  • line-spacing: 1.5;
To ensure that the distance between lines of text is 1.5 times the size of the text, you can use the line-height property in CSS. You can set it to 150%, which is equivalent to 1.5 times the font size. Alternatively, you can use line-height with an em value, like 1.5em, which achieves the same effect.
Add your answer
Loading...

Leave a comment

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