border-spacing

border-spacing

CSS border-spacing Property
The CSS border-spacing property is used to set the amount of space inside of table borders.
CSS CODE EXAMPLE
<!DOCTYPE html>
<style type="text/css">
#table1 {
    border:orange 4px solid;
    border-spacing: 8px;
}
#table2 {
    border:orange 4px solid;
    border-spacing: 24px;
}
table td { border:orange 2px solid; }
</style>
<table id="table1">
  <tr>
    <td>Cell data</td>
    <td>Cell data</td>
  </tr>
  <tr>
    <td>Cell data</td>
    <td>Cell data</td>
  </tr>
</table>
<hr />
<table id="table2">
  <tr>
    <td>Cell data</td>
    <td>Cell data</td>
  </tr>
  <tr>
    <td>Cell data</td>
    <td>Cell data</td>
  </tr>
</table>
 
Cell dataCell data
Cell dataCell data

Cell dataCell data
Cell dataCell data

Possible Values:

Pixel size 
Example: "16px"

em unit relative sizing
Example: "1.5em"


Related Properties

border-collapse

Related Posts :

  • counter-increment counter-increment CSS counter-increment Property The CSS counter-increment prope… Read More...
  • caption-side caption-side CSS caption-side Property The CSS caption-side property is used to … Read More...
  • clip clip CSS clip Property The CSS clip property is used to clip regions of an eleme… Read More...
  • content content CSS content Property The CSS content property is used to generate conten… Read More...
  • bottom bottom CSS bottom Property The CSS bottom property is used to offset an element'… Read More...

0 Response to "border-spacing"

Post a Comment