vertical alignment of the element
1
vertical alignment of the element
Value | Description |
---|---|
Values | |
percentage | a relative value |
length | a CSS length value (in pixels, ems, inches, etc.) |
baseline | aligns the baseline of the box with the baseline of the parent element |
bottom | aligns the bottom of the element with the bottom of the parent element |
middle | aligns the vertical midpoint of the box with the baseline of the parent box plus half the x-height of the parent |
sub | lowers the baseline to the proper position for subscripts |
super | raises the baseline to the proper position for superscripts |
text-bottom | aligns the bottom of the box with the bottom of the parent's content area |
text-top | aligns the top of the box with the top of the parent element's content area |
top | aligns the top of the element with the top of the parent element |
-webkit-baseline-middle |