|
|
VALIGN VALIGN stands for vertical alignment. The arguments for it are top, middle, bottom, and baseline. Adding VALIGN="top" attributes to <td> (or cell) tags ensures that cell contents will line up at the top. Before code: table without VALIGN <table border=1 width="100%">
<tr>
<td width="20%">Return..</td>
<td width="80%">Welcome..</td>
</tr>
</table>
Before results: table without VALIGN:
After code: table with VALIGN <table border=1 width="100%">
<tr>
<td width="20%" valign="top">Return..</td>
<td width="80%">Welcome..</td>
</tr>
</table>
After results: table with VALIGN
Note 1: HALIGN - horizontal align - is also available for table cells. Because this simply repeats left/right/center alignments of text tags, it's not as useful as VALIGN Note 2: To the best of my knowledge, attribute ordering makes no difference. <td width="20%" valign="top"> is the same as <td valign="top" width="20%">
|