HTML CSS Reference/HTML Attributes Reference/valign — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 09:21, 26 мая 2010
Содержание
"valign" Example
<HTML>
<head><Title>Example For valign</Title></head>
<BODY>
<table width="200" border="8">
<caption valign="bottom" style="color:red;">This is the caption for this table.</caption>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
</BODY>
</HTML>
valign is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<caption> <col> |
| |<colgroup> <tbody> |
| |<td> <tfoot> |
| |<th> <thead> |
| |<tr> |
+----------------+--------------------------------------------------------------+
valign Possible Values
Possible Values
Possible values are
top,
middle (the default),
absmiddle,
bottom,
baseline.
"valign" Syntax and Note
Note:
This attribute defines the vertical alignment of text within the table cell or
other element.
Syntax:
<element valign="value"> . . . </element>