The leading is the difference between
the content height and the (used) value
of line-height. Half the leading is
known as the half-leading??”an old
typographic term.
Glyphs (the visual representations of a character) are centered vertically within an
inline box. If the line height is larger than the content height, half the difference??”the
half-leading??”is added as space at the top; the same amount is also added at the
bottom.
Example
This style rule sets the default line height
in an HTML document to 1.5:
html {
line-height: 1.5;
}
When it??™s set on a block-level element, a table cell, a table caption, or an inline block
that consists solely of inline boxes, this property specifies the minimal height of
descendant line boxes.
329 Typographical Properties
When set on a non-replaced inline element, it specifies the height used to calculate
the height of the surrounding line box.
See Formatting Concepts (p. 163) for more information about block and inline
formatting.
Value
A specified length value will be the computed value for this property, and will be
used in the calculation of the final height for the line box.
Pages:
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488