CSS PROPERTIES
Expand All|Collapse All
CSS AT-RULES
SPONSORED LINKS

CSS caption-side Property

Topic: CSS3 Properties Reference« Prev|Next »

Description

The caption-side CSS property sets the vertical position of the table caption box. To align caption text horizontally within the caption box, use the text-align property.

The following table summarizes the usages context and the version history of this property.

Default value: top
Applies to: The table <caption> element
Inherited: Yes
Animatable: No. See animatable properties.
Version: CSS 2, 3

Syntax

The syntax of the property is given with:

caption-side top | bottom | initial | inherit

The example below shows the caption-side property in action.

  • caption {
  •     caption-side: bottom;
  • }

Property Values

The following table describes the values of this property.

Value Description
top Positions the caption box above the table box.
bottom Positions the caption box below the table box.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element caption-side property.

Browser Compatibility

The caption-side property is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 8+
  • Apple Safari 1+
  • Opera 4+
 

Warning:Internet Explorer 7 and earlier versions do not support the caption-side property. IE8 supports only if a valid <!DOCTYPE> is specified.


Further Reading

See tutorial on: CSS Tables.

Related properties: text-align

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.