HTML CSS Reference/HTML Attributes Reference/valign — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (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>