HTMLTableRowElement: vAlign property
HTML DOM
HTML DOM
The **`vAlign`** property of the HTMLTableRowElement interface is a string indicating how to vertically align text in a tr table row. Individual cells can override it.
> [!NOTE]
> This property is deprecated. Use the CSS vertical-align property to horizontally align text in a row instead.
## Value
The possible values are: `"top"`, `"middle"`, `"bottom"`, or `"baseline"`
- `top`
- : Align the text to the top of the cell. Use `vertical-align: top` instead.
- `center`
- : Vertically center the text in the cell. Synonym of `middle`. Use `vertical-align: middle` instead.
- `middle`
- : Vertically center the text in the cell. Use `vertical-align: middle` instead.
- `bottom`
- : Align the text to the bottom of the cell. Use `vertical-align: bottom` instead.
- `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.
## Examples
Use CSS vertical-align instead, which takes precedence, as demonstrated in the [vertical alignment table cells](/docs/Web/CSS/Reference/Properties/vertical-align#vertical_alignment_in_a_table_cell) example.
## Specifications
## Browser compatibility
## See also
- vertical-align
- [Learn: Styling tables](/docs/Learn_web_development/Core/Styling_basics/Tables)
Cite this
"HTMLTableRowElement: vAlign property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy