Currently, I am utilizing Bootstrap 5 and have the table code below:
.reasonCode-table {
padding: 8px;
border-collapse: separate;
}
.reasonCode-table th {
border: 2px solid #7a7878;
padding: 8px;
border-radius: 2px;
border-collapse: collapse;
}
.reasonCode-table td {
border: 2px solid #7a7878;
padding: 8px;
border-radius: 0.375rem;
border-collapse: collapse;
}
.reasonCode-table__title {
text-align: center;
}
.reasonCode-table__items {
vertical-align: middle;
text-align: center;
}
.reasonCode-table__last-column {
background-color: #f1f1f1;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="85e7eaeaf1f6f1f7e4f5c5b0abb7abb6">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<table class="reasonCode-table rounded rounded-3 overflow-hidden">
<tbody>
<tr>
<td class="col-md-1 reasonCode-table__items">101</td>
<td class="col-md-2 reasonCode-table__items">X764A</td>
<td class="col-md-9 reasonCode-table__last-column">
Claim submitted with incomplete patient information.
</td>
</tr>
<tr>
<td class="reasonCode-table__items">202</td>
<td class="reasonCode-table__items">H225B</td>
<td class="reasonCode-table__last-column">
The provided diagnosis code is invalid or not recognized.
</td>
</tr>
<tr>
<td class="reasonCode-table__items">303</td>
<td class="reasonCode-table__items">C879G</td>
<td class="reasonCode-table__last-column">
Procedure code billed is not covered under the patient's insurance plan.
</td>
</tr>
<tr>
<td class="reasonCode-table__items">404</td>
<td class="reasonCode-table__items">F512T</td>
<td class="reasonCode-table__last-column">
The claim contains duplicate service entries.
</td>
</tr>
<tr>
<td class="reasonCode-table__items">505</td>
<td class="reasonCode-table__items">Z989P</td>
<td class="reasonCode-table__last-column">
Billing provider is not authorized to perform the billed services.
</td>
</tr>
</tbody>
</table>
My goal is to create a standard table with a border-radius
of 6px. However, when attempting to do so, the borders are not applying correctly when using border-collapse: collapse
. Initially, I attempted setting border-collapse: separate
and then applying collapse
specifically to td
and th
elements, but the separators persisted. How can I achieve a simple table with border-radius while keeping collapsible borders?
Example of desired outcome: