{ VERTICAL-ALIGN :
BASELINE |
SUB |
SUPER |
TOP |
TEXT-TOP |
MIDDLE |
BOTTOM |
TEXT-BOTTOM |
PERCENTAGE }
Inherited: No
The VERTICAL-ALIGN property allows a wide variety of choices for aligning
characters, letters, words, and text with regard to the baseline of a
selected line of characters, letters, words, or text.
BASELINE
The BASELINE value is the default. It aligns the selected text to the
baseline (bottom) of a line. By declaring BASELINE, you can ensure that
any previous declaration will not effect a selected text.
SUB
The SUB value places selected characters, letters, words, or text
as a subcript.
SUPER
The SUPER value places selected characters, letters, words, or text
as a superscript.
TOP
The TOP value aligns selected characters, letters, words, or text
with the tallest character on the same line.
TEXT-TOP
The TEXT-TOP value aligns selected characters, letters, words, or text
with the tallest character on a selected line.
MIDDLE
The MIDDLE value aligns selected characters, letters, words, or text
with the mid-point (middle) of the same line.
BOTTOM
The BOTTOM value aligns selected characters, letters, words, or text
with the lowest character on the same line.
TEXT-BOTTOM
The TEXT-BOTTOM value aligns selected characters, letters, words, or text
with the tallest character on a selected line.
PERCENTAGE
The PERCENTAGE value is based upon the line height.
The bottom of the line (baseline) is designated 0% and the top is 100%. The PERCENTAGE can be
positive or negative and can exceed 100% in magnitude. A negative PERCENTAGE
aligns below the baseline.
Code:
Selector {VERTICAL-ALIGN: BASELINE}
Selector {VERTICAL-ALIGN: SUB}
Selector {VERTICAL-ALIGN: SUPER}
Selector {VERTICAL-ALIGN: TOP}
Selector {VERTICAL-ALIGN: TEXT-TOP}
Selector {VERTICAL-ALIGN: MIDDLE}
Selector {VERTICAL-ALIGN: BOTTOM}
Selector {VERTICAL-ALIGN: TEXT-BOTTOM}
Selector {VERTICAL-ALIGN: 50%}
Selector {VERTICAL-ALIGN: -125%}
{ WORD-SPACING :
NORMAL |
LENGTH }
Inherited: Yes
The WORD-SPACING property increases or decreases the width of the blank (white)
space between adjacent words. A positive value increases the width. A negative
value decreases the width.
NORMAL
The NORMAL value is the default. By declaring NORMAL, you can ensure that
any previous declaration will not effect the selected text.
LENGTH
The LENGTH value can be in any of the following seven
units. Use the abbreviation.