How does the "line-height" property affect the vertical spacing of a block of text?
- It defines the space between two blocks of text
- It determines the height of each line of text
- It has no impact on the vertical spacing of text
- It sets the space between characters within a line
The "line-height" property in CSS specifies the vertical space between lines of text within a block. A larger line-height value increases the vertical spacing, making text more readable, while a smaller value reduces the spacing. It is crucial for controlling text layout and readability.
Loading...
Related Quiz
- When using CSS to mask an element, the area defined by the mask image that is ________ will be visible.
- The ______ property in CSS lets you apply a delay before an animation starts.
- In terms of performance, why might you opt for the "woff2" font format over others?
- The cubic-bezier function for animation-timing-function takes in ______ arguments to define the curve.
- When you want flex items to stack vertically, you set flex-direction to ________.