Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS caption-side property

CSS caption-side property

Example

Specify the position of the table caption:

caption

{

caption-side:

bottom

;

}

Try it »


Property definition and usage

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 supports the caption-side property only when a !DOCTYPE is specified.


Attribute values

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

Related Articles

CSS Tutorial: CSS Table