HTML & CSS Wiki

READ MORE

HTML & CSS Wiki

The CSS caption-side property specifies the position of elements with an intrinsic (HTML <caption> elements) or assigned display property value of table-caption in relation to the table rendering box they are assigned to. Alignment within the table caption is accomplished using the text-align and vertical-align properties. The left and right values have been removed in CSS2.1.

Values[]

Value Description
inherit Explicitly sets the value of this property to that of the parent.
top The caption is positioned above the rendered table box.
bottom The caption is positioned below the rendered table box.
left The caption is positioned to the left of the rendered table box. Obsolete
right The caption is positioned to the right of the rendered table box. Obsolete


HTML example:

<caption style="caption-side:right;">TEXT</caption>


CSS example:

caption {
         caption-side:right;
}