I would like to collapse only the out-side border, not inside of the thead:
table, tr {
border: 1px solid black;
padding: 7px;
border-collapse: collapse;
}
th {
background: #ccccff;
}
<table>
<thead>
<tr>
<th>Data 1</th>
<th>Data 2</th>
</tr>
</thead>
</table>
will not show the borders between the th like Data 1 | Data 2, why? (And how to add these the border between the th elements)?