valign (HTML attribute)
| Depr. | Version |
|---|---|
| No | HTML 4 |
| IE8 | FF2 | SA4 | OP9.2+ | CH2 |
|---|---|---|---|---|
| None | None | None | Full | None |
Syntax
Description
In a very similar manner to
this element’s align
attribute, the valign attribute allows you
to override the default vertical alignment for content within table cells
related to the col in question.
Example
Here, the
valign is set to "bottom" for
cells that appear in the first column of the table:
<table border="1" cellpadding="5">
<col valign="bottom"/>
<col/>
<col/>
<col/>
<tr>
<th colspan="4">Work Contact Points</th>
</tr>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Floor/Block</th>
</tr>
⋮
<table>
Value
The recognized attribute values are as shown in the syntax section.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | Chrome | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 8.0 | 1.0 | 1.5 | 2.0 | 1.3 | 2.0 | 3.1 | 4.0 | 9.2 | 9.5 | 10.0 | 2.0 |
| None | None | None | None | None | None | None | None | None | None | None | Full | Full | Full | None |
In all the browsers tested, all vertical alignments were ignored, with the exception of Opera.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.