JSFiddle - React, Tailwind, and code Playground
HTML
<div class="table-wrapper">
<table>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
</table>
</div>
CSS
.table-wrapper {
border: 1px solid #000;
border-radius: 20px;
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
border-radius: 20px;
table-layout: fixed;
text-align: center;
font: 13px Verdana;
}
table tr {
border-radius: 20px;
}
table td {
border: 1px solid #000000;
padding: 20px;
background: red;
color: #ffffff;
}
table tr:first-child td:first-child {
border-radius: 20px 0 0 0;
}
table tr:first-child td:last-child {
border-radius: 0 20px 0 0;
}
table tr:last-child td:first-child {
border-radius: 0 0 0 20px;
}
table tr:last-child td:last-child {
border-radius: 0 0 20px 0;
}