caption-side

The caption-side property specifies the position of the caption box with respect to the table box.

CSS2

Syntax

caption-side: top | bottom | inherit
Initial: top
Applies To: table-caption elements
Inherited: yes
Percentages: NA
Media: visual

Values

caption-side: value
Value Description
bottom Positions the caption box below the table box
top Positions the caption box above the table box

DOM

[window.]document.getElementById("element-id").style.captionSide = "caption-side";

Example | bottom

Example | top

Example | DOM

External

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification