Specifies the vertical alignment property for the element.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 4.0+ | 4.0+ | 1.0+ | 4.0+ | 1.0+ |
---|
Usage
Example values: 14px, 2cm, 10%, baseline, etc.
Values
* | Specify a value for vertical-align that is not on this list. |
inherit | Inherit the value from the parent element. |
baseline | Align with the baseline of the containing element. |
sub | Align as subscript. |
super | Align as superscript. |
top | Align with the top of the tallest element. |
text-top | Align with the top of the text of the containing element. |
middle | Align with the middle of the containing element. |
text-bottom | Align with the bottom of the text of the containing element. |
Remarks
You can also specify a fixed pixel or percentage value for vertical-align
.
Availability
W3C CSS2