Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS caption-side property


May 05, 2021 CSS Reference Manual


Table of contents


CSS caption-side property


Specify the location of the table title:

caption
{
caption-side:bottom;
}

Try it out . . .

Description of property definition and use

The Tcaption-side property sets the position of the table title.

Default: top
Inheritance: yes
Version: CSS2
JavaScript syntax: object .style.captionSide="bottom"


Browser support

CSS caption-side property CSS caption-side property CSS caption-side property CSS caption-side property CSS caption-side property

Caption-side properties are supported by all major browsers.

Note: I E8 is only specified! DOCTYPE only supports the caption-side property.


The property value

Value Describe
top The default. Position the table title on top of the table.
bottom Position the table title under 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