Style captionSide Property
The Style object
Definition and Usage
The captionSide property sets or returns the position of a table caption.
Syntax
Set the captionSide property:
Object.style.captionSide="top|bottom|inherit"
Return the captionSide property:
Object.style.captionSide
| Value | Description |
|---|---|
| top | Default. Positions the table caption above the table. |
| bottom | Positions the table caption below the table. |
| inherit | The value of the captionSide property is inherited from the parent element. |
Browser support





All major browsers support the captionSide property.
**Note:** IE7 and earlier versions do not support the captionSide property. IE8 only supports the captionSide property when a !DOCTYPE is specified. IE9 supports the captionSide property.
Example
Example
Move the table caption to the bottom of the table:
| Month | Savings |
|---|---|
| January | $100 |
| February | $150 |
Try it »
The Style object