vertical-align

vertical alignment of the element

Example

1

Description

vertical alignment of the element

Values

Value Description
Values
percentagea relative value
lengtha CSS length value (in pixels, ems, inches, etc.)
baselinealigns the baseline of the box with the baseline of the parent element
bottomaligns the bottom of the element with the bottom of the parent element
middlealigns the vertical midpoint of the box with the baseline of the parent box plus half the x-height of the parent
sublowers the baseline to the proper position for subscripts
superraises the baseline to the proper position for superscripts
text-bottomaligns the bottom of the box with the bottom of the parent's content area
text-topaligns the top of the box with the top of the parent element's content area
topaligns the top of the element with the top of the parent element
-webkit-baseline-middle