The information here is pretty simple but useful.
Summarizing:
The default value of line-height:normal gives line-height:1.2 , 120% of the font size. If you are going to change it, it is usually best to use a number without units, for example lineheight:1.5 (150% font size), because then the line height for the element will be calculated from this font of the size element, even if the line height was inherited from an element with different font size.
If you say line-height:10em , it is calculated from the font in the element where the line height was specified., Which may be incorrect if this line height is inherited by an element with a different font size.
Likewise, a certain number of pixels, such as line-height:10px , can be erroneous if it is inherited by elements with different font sizes.
source share