Mega Code Archive

 
Categories / JavaScript DHTML / Table
 

Caption Vertical Align

<html> <body> <table width="200" border="8" cellspacing="5" cellpadding="5" align="left">     <caption id="myCaption" style="color:red;">         Table 2-5. This is the caption for this table.     </caption>     <script language="JavaScript">         document.all.myCaption.vAlign = "bottom";     </script>     <tr>         <td>Cell 1</td>         <td>Cell 2</td>     </tr>     <tr>         <td>Cell 3</td>         <td>Cell 4</td>     </tr> </table> </body> </html>