caption-side

caption-side

CSS caption-side Property
The CSS caption-side property is used to specify the position of a caption element in relation to its table element.
CSS CODE EXAMPLE
<!DOCTYPE html>
<style type="text/css">
#myTable caption {
    caption-side: bottom;
    text-align: right;
    font-size: 12px;
}
</style>
<table id="myTable" border="1">
  <caption>My Favorite Flavors</caption>
  <tr>
    <td>Chocolate</td>
    <td>Strawberry</td>
    <td>Vanilla</td>
  </tr>
</table>
 
My Favorite Flavors
ChocolateStrawberryVanilla

Possible Values:

top ━ bottom ━ inherit

0 Response to "caption-side"

Post a Comment