HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

initial-letter-align

Description

The initial-letter-align property for CSS specifies the alignment points used to size and position an initial letter. Two sets of alignment points are necessary: the over and under alignment points of the initial letter are matched to corresponding over and under points of the root inline box.

Syntax

CSS

initial-letter-align: value;

JS

object.style.initialLetterAlign = "value";

Values

<'initial-letter-align'> =
    [ border-box? [ alphabetic | ideographic | hanging | leading ]? ]!
border-box

Use the initial letter box’s line-under and line-over border edges as the over and under alignment points, respectively.

alphabetic

Use the cap-height and alphabetic baselines of the surrounding text to align the initial letter.

ideographic

Use the ideographic-ink-over and ideographic-ink-under baselines of the surrounding text to align the initial letter.

hanging

Use the hanging and alphabetic baselines of the surrounding text to align the initial letter.

leading

Use the over/under half-leading edges (i.e. ascent/descent + half-leading) of the surrounding text to align the initial letter.

Initial

alphabetic

Examples

1 · border-box

2 · alphabetic

3 · ideographic

4 · hanging

5 · leading

6 · JS