caption-side

The caption-side CSS property positions the content of a table’s <caption> on the specified side.

Values

top The caption box will be above the table.
bottom The caption box will be below the table.

left

The caption box will be on the left side of the table.

Note: this value was proposed for CSS 2, but removed from the final CSS 2.1 specification. It is non-standard.

right

The caption box will be on the right side of the table.

Note: this value was proposed for CSS 2, but removed from the final CSS 2.1 specification. It is non-standard.

<!DOCTYPE html>
<html>
    <head>
        <style>
            .contentbox table caption {
                caption-side: bottom;
            }
        </style>
    </head>
    <body>
    <div class="contentbox">
    	<table width="100%">
    		<caption> caption property</caption>
    		<tr>
				<td>1</td>
				<td>2</td>
    		</tr>
    		<tr>
				<td>3</td>
				<td>4</td>
    		</tr>
    		<tr>
				<td>5</td>
				<td>6</td>
    		</tr>
    		<tr>
				<td>7</td>
				<td>8</td>
    		</tr>
    	</table>
        </div>
    </body>
</html>