CSS caption-sideProperty


Example

Specify the position of the table caption:

caption { caption-side:bottom; }

Try it Yourself »

Property definition and usage instructions

The caption-side property sets the position of the table caption.

Default value: top
Inheritance: yes
version: CSS2
JavaScript Syntax: object.style.captionSide="bottom"


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the caption-side property.

Note:IE8 only supports the caption-side property when !DOCTYPE is specified.


Property value

Value Description
top Default value. Positions the table caption above the table.
bottom Position the table caption below the table.
inherit Specifies that the value of the caption-side property should be inherited from the parent element.


Related Articles

CSS Tutorial:CSS Table

other extensions