web api instance property
HTMLTableCellElement: vAlign property
The vAlign property of the HTMLTableCellElement interface is a string indicating how to vertically align text in a <th> or <td> table cell.
[!NOTE] This property is deprecated. Use the CSS
vertical-alignproperty to vertically align text in a cell instead.
Value
The possible values are: "top", "middle", "bottom", or "baseline"
top- : Align the text to the top of the cell. Use
vertical-align: topinstead.
- : Align the text to the top of the cell. Use
center- : Vertically center the text in the cell. Synonym of
middle. Usevertical-align: middleinstead.
- : Vertically center the text in the cell. Synonym of
middle- : Vertically center the text in the cell. Use
vertical-align: middleinstead.
- : Vertically center the text in the cell. Use
bottom- : Align the text to the bottom of the cell. Use
vertical-align: bottominstead.
- : Align the text to the bottom of the cell. Use
baseline- : Similar to
top, but align the baseline of the text as close to the top so no part of the character is outside of the cell.
- : Similar to
Examples
Use CSS vertical-align instead, which takes precedence, as demonstrated in the vertical alignment table cells example.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.