caption-side :
bottom |
left |
right |
top
Compatibility:
Currently not supported by any browser
Version: Level 2 Inherited: Yes
The caption-side property specifies if the caption box will be on the bottom, left, right,
or top of a table.
This property is designed to be used with the HTML
caption tag.
It is recommended that special consideration be paid to the width of the table when using a
left or right sided caption box.
You can vertically align a left or right side caption box to a table by using the vertical-align
property with the bottom, middle, or top values.
This is one of five Level 2 properties that specifically applies style to tables.
The other four are border-collapse, border-spacing, empty-cells, and table-layout.
bottom
The bottom value places a caption box below the table.
left
The left value places a caption box on the left side of the table.
right
The right value places a caption box on the right side of the table.
top
The top value places a caption box above the table.
Code:
caption
{
caption-side: top;
width: auto;
text-align: left;
}
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
|