See the Values section below for more information on how each value is computed. The line-height property can take a keyword value ( normal), or it can be set using numbers, lengths, or percentage values.
To do that, please refer to the font property entry for more information. It is often convenient to set the value of the line-height in the font shorthand property. If the value of the line-height property is smaller than the value of the font-size, text may overflow the element, and text on one line may overlap text on another line above or below it. The leading is cut in half (producing a “half-leading”) and distributed on the top and bottom of the inline content, so an inline element is centered within the line box (unless the alignment is changed using the vertical-align property). If the line-height value is greater than the value of the font-size of an element, the difference between the value of the line height and the value of the font size is the leading of text. The line-height property is widely used to set the leading of lines of text. The difference between the content height and the specified line-height is called the “leading”. In other words, it is used to set the amount of space above and below inline elements-elements that have display: inline and display: inline-block. It sets the distance between two adjacent lines’ baselines. The line-height property is used to set the height of the line box of an element.