Style caption Side Property

Style caption Side Property


Style caption Side Property
It is the CSS property that puts the content of a table's on the specified side and the values are relative to the writing mode of the table.
It is used to specify the position where the table caption is placed.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
 
Property
 
chrome
 
firefox
 
microsoft edge
 
opera
 
caption-side
 
1.0
 
1.0
 
8.0
 
4.0
Syntax
caption-side: top|bottom|initial|inherit;
Example
Output
 
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.
 
inherit
Inherits this property from its parent element.

 
Technical Details
 
Default value:
 
Top
 
Version:
 
CSS2
 
inherited
 
Yes
 
Animatable
 
No
 
JavaScript syntax:
 
object.style.captionSide="bottom"