HTML valign attribute
Example
An HTML table with columns of different vertical alignments:
| Month | Savings |
|---|---|
| January | $100 |
Try it »
Browser support





Only Internet Explorer and Opera support the valign attribute. However, IE and Opera do not support the "baseline" value.
Definition and Usage
In HTML5, the valign attribute is not supported.
The valign attribute specifies the vertical alignment of the content in the column group.
Syntax
Attribute values
| Value | Description |
|---|---|
| top | Align the content to the top. |
| middle | Center-align the content (default). |
| bottom | Align the content to the bottom. |
| baseline | Align to the baseline. The baseline is an imaginary line. In a line of text, most letters sit on the baseline. The baseline value sets all table data in the row to share the same baseline. The effect of this value is often the same as the bottom value. However, if the text sizes vary, the baseline value works better. See the illustration below. |
Illustration of bottom vs. baseline when text sizes differ:
valign="bottom"
valign="baseline"
HTML tag