HTMLTableRowElement: vAlign property
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The Note:
This property is deprecated. Use the CSS The possible values are: Align the text to the top of the cell. Use Vertically center the text in the cell. Synonym of Vertically center the text in the cell. Use Align the text to the bottom of the cell. Use Similar to Use CSS vAlign
property of the HTMLTableRowElement
interface is a string indicating how to vertically align text in a table row. Individual cells can override it.
vertical-align
property to horizontally align text in a row instead.Value
"top"
, "middle"
, "bottom"
, or "baseline"
top
vertical-align: top
instead.center
middle
. Use vertical-align: middle
instead.middle
vertical-align: middle
instead.bottom
vertical-align: bottom
instead.baseline
top
, but align the baseline of the text as close to the top so no part of the character is outside of the cell.Examples
vertical-align
instead, which takes precedence, as demonstrated in the vertical alignment table cells example.Specifications
Specification HTML
# dom-tr-valignBrowser compatibility
See also