CSS caption-side Property
Example
Specify the placement of table captions:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Definition and Usage
The caption-side
property specifies the placement of a table caption.
Default value: | top |
---|---|
Inherited: | yes |
Animatable: | no. |
Version: | CSS2 |
JavaScript syntax: | object.style.captionSide="bottom" |
- Inherited : "Inherited = yes" means that it can takes (inherit) it's value from it's parent element.
- object - object in javascript means the element on which
captionSide
is applied. - Animatable - "Animatable = no" means that it cannot be animated with CSS
@keyframes
.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
CSS Syntax
caption-side: top|bottom|initial|inherit;
Property Values
Value | Description | Demo |
---|---|---|
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. |
Comments
Post a Comment