HTML and CSS Reference
In-Depth Information
8.4.6.8. The vertical-align property
The vertical-align property controls the relative position of an element
with respect to the line containing the element. Valid values for this
property include:
baseline
Align the baseline of the element with the baseline of the containing
element.
middle
Align the middle of the element with the middle (usually the x-
height) of the containing element.
sub
Subscript the element.
super
Superscript the element.
text-top
Align the top of the element with the top of the font of the parent
element.
text-bottom
Align the bottom of the element with the bottom of the font of the
parent element.
top
Align the top of the element with the top of the tallest element in
the current line.
 
Search WWH ::




Custom Search