I utilized an HTML code generator to easily create this table, but I am struggling to give it rounded borders.
.tg {
border-collapse: collapse;
border-spacing: 0;
}
.tg td {
border-color: black;
border-style: solid;
border-width: 3px;
font-family: Arial, sans-serif;
font-size: 14px;
overflow: hidden;
padding: 10px 5px;
word-break: normal;
}
.tg th {
border-color: black;
border-style: solid;
border-width: 3px;
font-family: Arial, sans-serif;
font-size: 14px;
font-weight: normal;
overflow: hidden;
padding: 10px 5px;
word-break: normal;
}
.tg .tg-5091 {
background-color: #ffffff;
border-color: #93d22c;
color: #07215c;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;
text-align: center;
vertical-align: top
}
.tg .tg-2kj1 {
background-color: #ffffff;
border-color: #93d22c;
color: #07215c;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;
text-align: left;
vertical-align: top
}
<table class="tg" style="width: 100%;">
<thead>
<tr>
<th style="text-align: center; width: 165px;" class="tg-5091"></th>
<th class="tg-5091" style="width: 108px;"><strong>Price per unit</strong></th>
<th class="tg-5091" style="width: 99px;"><strong>Delivery Fee</strong></th>
<th class="tg-5091" style="width: 120.288px;"><strong>Delivery Time</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td class="tg-2kj1" style="width: 165px;">X</td>
<td class="tg-5091" style="width: 108px;">X</td>
<td class="tg-5091" style="width: 99px;">X</td>
<td class="tg-5091" style="width: 120.288px;">X</td>
</tr>
<tr>
<td class="tg-2kj1" style="width: 165px;">X</td>
<td class="tg-5091" style="width: 108px;">1</td>
<td class="tg-5091" style="width: 99px;">1</td>
<td class="tg-5091" style="width: 120.288px;">1</td>
</tr>
<tr>
<td class="tg-2kj1" style="width: 165px;">X</td>
<td class="tg-5091" style="width: 108px;">1</td>
<td class="tg-5091" style="width: 99px;">1</td>
<td class="tg-5091" style="width: 120.288px;">1</td>
</tr>
<tr>
<td class="tg-2kj1" style="width: 165px;">X</td>
<td class="tg-5091" style="width: 108px;">1</td>
<td class="tg-5091" style="width: 99px;">1</td>
<td class="tg-5091" style="width: 120.288px;">1</td>
</tr>
</tbody>
</table>
Seeking assistance as a complete beginner here. Any help would be greatly appreciated.
I've attempted different CSS solutions found online, but due to the way the table is generated, none of them seem to work. Building the table from scratch seems daunting at the moment, especially since it is used multiple times on the site. However, adding the borders where needed now seems like the best option instead of completely rebuilding the tables.