CSS Property:
caption-side:

Result:
A Table Caption
A table cell A table cell
A table cell A table cell
CSS Code:
table#myTable {
caption-side:top;
}
Click the property values above to see the result
w3ii.com - Play it