CSS Vertical-align Property
Reference on the css Vertical-align Property. Includes a list of possible values, and example of use.
The CSS Vertical-align property allows to align the text vertically.
Possible Values
- baseline (Default) [baseline of the parent box]
- middle [Middle of parent element]
- sub [As subscript]
- super [As superscript]
- text-top
- text-bottom
- % [A percentage of the "line-height" value "%0" is same as baseline]
- length ["0cm" is same as baseline]
- top [top of box; with top of, line box]
- bottom [bottom of box; with bottom of, line box]
body {
vertical-align: middle;
}Inherited? NO!