Home > Abakada: Back to Basics > Language References > HTML Element Attributes > VALIGN Attribute
Sets or retrieves how text and other content are vertically aligned within the object that contains them.
Inline |
<element VALIGN = 'middle' | 'center' | 'baseline' | 'bottom' | 'top'...> |
Script |
object.vAlign = sAlign ] |
middle |
Aligns the text in the middle of the object. |
center |
Aligns the text in the middle of the object. |
baseline |
Aligns the base line of the first line of text with the base lines in adjacent objects. |
bottom |
Aligns the text at the bottom of the object. |
top |
Aligns the text at the top of the object. |
The property is read/write with a default value of middle.
COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR