06-28-2018, 09:54 AM
The border-collapse Property:
This property can have two values collapse and separate. Following is the example to show both values:
css:
table.one {border-collapse:collapse;}
table.two {border-collapseeparate;}
td.a {
border-style:dotted;
border-width:3px;
border-color:#000000;
padding: 10px;
}
td.b {border-styleolid;
border-width:3px;
border-color:#333333;
padding:10px;
}
HTML
<table class="one">
<caption>Collapse Border Example</caption>
<tr><td class="a"> Cell A Collapse Example</td></tr>
<tr><td class="b"> Cell B Collapse Example</td></tr>
</table>
<br />
<table class="two">
<caption>Separate Border Example</caption>
<tr><td class="a"> Cell A Separate Example</td></tr>
<tr><td class="b"> Cell B Separate Example</td></tr>
</table>
This property can have two values collapse and separate. Following is the example to show both values:
css:
table.one {border-collapse:collapse;}
table.two {border-collapseeparate;}
td.a {
border-style:dotted;
border-width:3px;
border-color:#000000;
padding: 10px;
}
td.b {border-styleolid;
border-width:3px;
border-color:#333333;
padding:10px;
}
HTML
<table class="one">
<caption>Collapse Border Example</caption>
<tr><td class="a"> Cell A Collapse Example</td></tr>
<tr><td class="b"> Cell B Collapse Example</td></tr>
</table>
<br />
<table class="two">
<caption>Separate Border Example</caption>
<tr><td class="a"> Cell A Separate Example</td></tr>
<tr><td class="b"> Cell B Separate Example</td></tr>
</table>
Hasan