CSS line-height Property


The line-height property in CSS is used to set the amount of space used for lines, such as in the text. Negative values are not allowed.

The line-height property specifies the height of a line.

Note: Negative values are not allowed.

CSS Syntax

line-height: normal|number|length|initial|inherit;

Supported Browsers:

  • Firefox: 52.0, 2.0 -moz-
  • Google Chrome: 50.0, 4.0 -webkit-
  • Internet Explorer: 10.0
  • Safari: 9.0, 3.1 -webkit-
  • Opera: 37.0, 15.0 -webkit-, 11.1

Example -