border

UK[ˈbɔ:də(r)] US[ˈbɔ:rdə(r)]

n.Border; edge; edging; wrapping Edge

vt.& vi. Bound with, on the edge of...

vt. Along the edge of, surround..., edge...

vi. Approximate, adjacent

Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered

spacing

英[ ˈspeɪsɪŋ] 美[ˈspesɪŋ]

n. Spacing, spacing; span; density; leaving gaps

javascript borderSpacing property syntax

Function:Set the distance separating cell borders

Syntax: Object.style.borderSpacing=length,length

javascript borderSpacing property example

<html>
<head>
<script type="text/javascript">
function changeBorderSpacing()
{
document.getElementById('myTable').style.borderSpacing="10px"
}
</script>
</head>
<body>

<table border="1" id="myTable">
  <tr>
    <td>100</td>
    <td>200</td>
  </tr>
  <tr>
    <td>300</td>
    <td>400</td>
  </tr>
</table>

<input type="button" onclick="changeBorderSpacing()" 
value="Change border spacing">

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance