HTML/CSS/Table Attributes/valign

Материал из Web эксперт
Перейти к: навигация, поиск

"valign" defines the vertical alignment of text within the table cell or other element

    
<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>