CSS caption-side

The CSS caption-side property is used to specify where a caption will be positioned with regards to the table (i.e. above or below the table).

Syntax: caption-side: <value>
Possible Values:
  • top
  • bottom
  • inherit
Initial Value: Top
Applies to: Tables with a caption
Inherited: Yes
Media: Visual
Example:
caption {
  caption-side: bottom;
  width: auto;
  text-align: left;
  }
Try it yourself!