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

Related Posts :

  • border-X border-X CSS border-X Property The CSS border-left, border-top, border-right&nb… Read More...
  • clear clear CSS clear Property The CSS clear property is used to clear space for an elemen… Read More...
  • border-width border-width CSS border-width Property The CSS border-width property is… Read More...
  • border border CSS border Property The CSS border property is shorthand CSS for specifying u… Read More...
  • border-X-width border-X-width CSS border-X-width Property The CSS border-left-width, b… Read More...

0 Response to "caption-side"

Post a Comment