CSS caption-side Property

Description

The caption-side property specifies the position of the table caption with respect to the table box.

Initial value
top
Applies to
Tables with a caption
Inherited
Yes
Media
Visual
Computed value
As specified
Animatable
No
CSS Version
CSS2, CSS3
JavaScript syntax
object.style.captionSide

Syntax

Formal syntax: top | bottom | inherit

caption-side: top;
caption-side: bottom;

Values

  • topPositions the caption box above the table box.
  • bottomPositions the caption box below the table box.

Example

.class {
   caption-side: bottom;
   width: auto;
   text-align: left;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
8121141
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
≤37184X1X