September 2014
Intermediate to advanced
148 pages
2h 15m
English
CHAPTER 12
![]()
Spacing
The following properties deal with the space between elements. They are all inherited by default.
line-height
line-height sets the distance between lines. The initial value is normal, which is typically rendered as 120% of the font size. The line height can also be set to a length, a percentage of the current font size, or a dimensionless number that is multiplied with the current font size.
line-height : inherit | normal | <length> | <percentage> | <number>
The line-height property inherits, so the preferred way to set line-height is by using a dimensionless number. Setting line-height as a length or percentage can have unexpected ...
Read now
Unlock full access