The vertical-align property sets vertical alignment of inline element.
<length>
support length
in Lynx,aligns the baseline of the element to the given length above the initial baseline,a negative value is allowed.
<percent>
Shift a percentage of the line-height
,a negative value is allowed.
baseline
Aligns the baseline of element with the baseline of line.
middle
Get max x-height of all of text,aligns the middle of element with the position of half max x-height.
center
Aligns the middle of the element with the middle of line.
top
Aligns the top of the element with the top of line.
bottom
Aligns the bottom of the element with the bottom of line.
text-top
Get max ascent of all of text,aligns the top of element with the position of max ascent.
text-bottom
Get max descent of all of text,aligns the bottom of element with the position of max descent.
super
Upward shift 10% of the element's height.
sub
Downward shift 10% of the element's height.
default value baseline
Initial value | baseline |
Applies to | inline-text、inline-image、inline-view |
Inherited | no |
Animatable | no |
LCD tables only load in the browser