mirror of
https://github.com/google/fonts.git
synced 2024-12-18 14:21:47 +03:00
1.2 KiB
1.2 KiB
Line height is the vertical distance between two lines of type, measured from the baseline of one line of type to the baseline of the next. Traditionally, in metal type, this was the combined measurement of the font size and the strips of lead that were inserted between each row (called “leading”) of type.
Line height has a direct impact on the readability of text, so understanding it is one of the most fundamental typographic practices.
It’s possible to set the line height value in a number of units, as with font size, although those units could be different. For instance, we might set our font-size
in pixels, but then declare the line height
with a percentage value:
p {
font-size: 16px;
line height:150%; /* Equivalent to 24px */
}