Latest web development tutorials

CSS caption-side property

Examples

Specifies the location of the table headings:

caption
{
caption-side: bottom;
}

try it"

Attribute definitions and instructions

Tcaption-side property is set to form the title position.

Defaults: top
Inherited: yes
version: CSS2
JavaScript syntax: object .style.captionSide = "bottom"


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support caption-side property.

Note: IE8 only the specified DOCTYPE supported caption-side property!.


Property Value

value description
top Defaults. The table header is positioned above the table.
bottom The table header positioned below the table.
inherit Provisions should inherit the caption-side property value from the parent element.


related articles

CSS tutorial: CSS the Table