xxxxxxxxxx
table, th, td {
width: 20%;
margin: auto;
border: 1px solid black;
border-collapse: collapse;
}
xxxxxxxxxx
<table border="2" style="border-collapse:collapse;">
<tbody>
<tr>
<td>123</td>
<td>123</td>
<td>123</td>
</tr>
</tbody>
</table>
xxxxxxxxxx
/*For collapsed boarders*/
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
xxxxxxxxxx
<style>
.table-bordered {
border: 1.3px solid black !important;
}
th,td{
border: 1.5px solid black !important;
}
</style>
xxxxxxxxxx
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
You can adjust the size and style of the border by specifying a different value for the "border" attribute. For example, "border=2" will create a thicker border than "border=1". You can also use CSS to style the border of the table in more detail.