This sets the style that determines the spacing and alignment of text elements.
word-spacing
Usage
Sets the spacing between words.
Values
<length> The spacing may be expressed in inches (in), centimeters (cm), points (pt), and pixels (px).
inherit The same as the parent element.
Initial Value
normal
letter-spacing
Usage
Sets the spacing between letters, also known as kerning.
Values
<length> The spacing may be expressed in inches (in), centimeters (cm), points (pt), and pixels (px).
inherit The same as the parent element.
Initial Value
normal
line-height
Usage
Sets the total height of a line of text, including the space above and below the text.
Values
<length> The spacing may be expressed in inches (in), centimeters (cm), points (pt), and pixels (px).
inherit The same as the parent element.
Initial Value
normal
Tip
Each of these properties may also be expressed as a negative (for example, letter-spacing:-10px), which decreases the normal spacing to create interesting effects.
text-align
Usage
Sets the alignment of the text element.
Values
left The text is aligned on the left side.
right The text is aligned on the right side.
center The text is centered.
justify The text is aligned on both the left and right sides.
inherit The same as the parent element.
Initial Value
Depends on the browser settings.
vertical-align
Usage
Sets the vertical alignment of the element relative to the surrounding elements.
Values
baseline The element aligns with the baseline of surrounding elements.
sub or super The element is subscripted or superscripted respectively.
top, middle, bottom The element is aligned with the top, middle, or bottom of surrounding elements respectively.
text-top or text-bottom The element is aligned with the top or bottom of surrounding text elements.
inherit The same as the parent element.
Initial Value
baseline.
text-indent
Usage
Sets the spacing before the text element relative to the surrounding elements.
Values
<length> The indent spacing is a fixed length expressed in inches (in), centimeters (cm), points (pt), or pixels (px).
<percentage> The indent spacing is a percentage of the containing element (usually the browser window or the table cell).