CSS line-height property

CSS line-height

CSS line-height property is used to set the line space.

While in block-level elements, it is used to specify the minimum height of line boxes within the element, and in non-replaced inline elements, it is used to specify the height that is used to calculate line box height.

For example, space between lines in the text.

Example

Try Yourself