CSS caption-side Property

caption-side: Specify the placement of table captions:

#example1 {
caption-side: bottom;
}#example2 {
caption-side: top;

Try it Yourself »

Definition and Usage

The caption-side property specifies the placement of a table caption.

Default value: top
Inherited: yes
Animatable: no. Read about animatable
Version: CSS2
JavaScript syntax: object.style.captionSide=”bottom” Try it
CSS Syntax
caption-side: top|bottom|initial|inherit;
Property Values
Value Description
top Puts the caption above the table. This is default
bottom Puts the caption below the table
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit