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

collapse

英[ kəˈlæps] 美[kəˈlæps]

vi. Collapse; collapse; fold; (especially after working hard) sit down

vt. To collapse; to collapse; to disintegrate

n. Collapse; (physical) weakness

Third person singular: collapses Present participle: collapsing Past tense: collapsed Past participle: collapsed

javascript borderCollapse attribute syntax

Function:Set whether the table borders are merged into a single border, or separated like in standard HTML.

Syntax: Object.style.borderCollapse=collapse|separate

javascript borderCollapse attribute example

<html>
<head>
<script type="text/javascript">
function setBorderCollapse()
{
document.getElementById('myTable').style.borderCollapse="collapse"
}
</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>
<br />
<input type="button" onclick="setBorderCollapse()"
value="Collapse border">

</body>
</html>

Run instance »

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