CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS caption-side property




CSS caption-side property use to set a caption to table header or bottom part.


Property Values


Properties Value Description
Syntax caption-side:value;
value   top
  bottom
  inherit
Allow to Table with caption elements
Inherited Yes

Example-Code:

<table border="1" width="500px">
<caption style="caption-side:top;text-align:center;">Table caption
</caption>
<tr>
  <td> table cell </td>
  <td> table cell </td>
</tr>
<tr>
  <td> table cell </td>
  <td> table cell </td>
</tr>
</table> 
Online Try This Code Your Self....   »

Example-Result:

Table caption
table cell table cell
table cell table cell