Easy Tutorial
❮ Att Select Multiple Att Link Charset ❯

HTML <colgroup> valign Attribute

HTML <colgroup> Tag

Example

An HTML table with columns aligned differently vertically:


Browser Support

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


Definition and Usage

The valign attribute specifies the vertical alignment of content in a column group.


Syntax

Attribute Values

Value Description
top Aligns the content at the top.
middle Centers the content vertically (default).
bottom Aligns the content at the bottom.
baseline Aligns to the baseline. The baseline is an imaginary line. In a line of text, most letters rest on the baseline. The baseline value sets all table data in the row to share the same baseline. This often has the same effect as the bottom value. However, if the text size varies, baseline works better. See the illustration below.

Illustration of bottom vs. baseline when text size varies:

❮ Att Select Multiple Att Link Charset ❯