Move the table caption to the bottom of the table:
The captionSide property sets or returns the position of the table caption.
The captionSide property is supported in all major browsers.
Note: The captionSide property is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports it.
Return the captionSide property:
Set the captionSide property:
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table 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 |
Default Value: | top |
---|---|
Return Value: | A String, representing the position of the table caption |
CSS Version | CSS2 |
Return the table caption:
CSS tutorial: CSS Table
CSS reference: caption-side property