HTMLTableRowElement: vAlign property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("HTML DOM")}}
The **vAlign** property of the {{domxref("HTMLTableRowElement")}} interface is a string indicating how to vertically align text in a {{htmlelement("tr")}} table row. Individual cells can override it.
توجه: This property is deprecated. Use the CSS {{cssxref("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: topinstead. center- : Vertically center the text in the cell. Synonym of
middle. Usevertical-align: middleinstead. middle- : Vertically center the text in the cell. Use
vertical-align: middleinstead. bottom- : Align the text to the bottom of the cell. Use
vertical-align: bottominstead. 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 {{cssxref("vertical-align")}} instead, which takes precedence, as demonstrated in the vertical alignment table cells example.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{cssxref("vertical-align")}}
- Learn: Styling tables