CSS vertical-align property
Attribute definitions and instructions
vertical-align property is set to an element of vertical alignment.
Defaults: | baseline |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object .style.verticalAlign = "bottom" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
vertical-align | 1.0 | 4.0 | 1.0 | 1.0 | 4.0 |
Property Value
value | description |
---|---|
baseline | default. Element placed on the baseline of the parent element. |
sub | Subscript vertical alignment of the text. |
super | Aligns superscript |
top | The top end of the top row elements of the highest element is aligned |
text-top | The top of the top of the parent element's font element is aligned |
middle | This element is placed in the middle of the parent element. |
bottom | The top of the lowest elements in the top row of elements are aligned. |
text-bottom | The bottom end of the bottom of the parent element font element is aligned. |
length | |
% | Using the "line-height" attribute of a percentage value to rank this element. Negative values are allowed. |
inherit | Provisions should inherit the vertical-align property value from the parent element. |
related articles
CSS tutorial: CSS text