Easy Tutorial
❮ Att Param Name Canvas Rect ❯

HTML <col> valign Attribute

HTML <col> Tag

Example

A table with columns having different vertical alignments:


Browser Support

Only Internet Explorer and Opera support the valign attribute. However, IE and Opera do not support the value "baseline".


Definition and Usage

The align attribute specifies the vertical alignment of content associated with the <col> element.


Syntax

Attribute Values

Value Description
top Aligns the content to the top.
middle Centers the content (default value).
bottom Aligns the content to the bottom.
baseline Aligns 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. This often looks the same as the bottom value. However, if the text size varies, baseline works better. See the illustration below:

❮ Att Param Name Canvas Rect ❯