Easy Tutorial
❮ Sel Only Of Type Pr Grid Row End ❯

CSS caption-side Property

Example

Specify the position of the table caption:

caption
{
    caption-side:bottom;
}

Property Definition and Usage

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

Default value: top
Inherited: yes
--- ---
Version: CSS2
--- ---
JavaScript syntax: object.style.captionSide="bottom"
--- ---

Browser Support

All major browsers support the caption-side property.

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


Property Values

Value Description
top Default value. Positions the table caption above the table.
bottom Positions 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

❮ Sel Only Of Type Pr Grid Row End ❯