What does the CSS property "line-height" primarily affect?
- Background color
- Font color
- Spacing between lines of text
- Text size
The CSS property "line-height" primarily affects the spacing between lines of text within an element. It determines the vertical distance between the baselines of two consecutive lines of text. Adjusting the line-height can impact the readability and aesthetics of text on a webpage.
Loading...
Related Quiz
- A font's loading performance can be improved by ________.
- Which pseudo-class in CSS is used to target elements based on their position in a parent element, like the first child?
- What is the purpose of the @keyframes rule in CSS?
- You're developing a slide-in sidebar menu. What CSS property would be most efficient to animate for smooth performance?
- How do you include a mixin in your SCSS code?