Caption Vertical Align : Caption « Table « JavaScript DHTML






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>

    
      
      








Related examples in the same category

1.Table Caption align Example
2.Create a Caption
3.Delete a Caption
4.Get caption from table object