I have a table which has a lot of data, so it has to be scrolled horizontally. I have designed the table seperating each row as each seperate cards but I unable get the border-radius on the left and right part of the table row properly. If i scroll towards the end of the right, then i can see the radius on right and same on left. When you are in middle you do not see any border radius.
PS: Applying radius to first and last td does not work when there is horizontal scroll. :(
Is there any trick to fix this so both the sides of border radius is visible all the time ? I don't have much idea on table since it does take limited attributes. Or maybe we will need javascript to get the desired output ?
I am looking it to be like this on the image below,

.page-wrapper {
background-color: #f1f2f5;
}
table {
white-space: nowrap;
border-collapse: separate;
border-spacing: 0 10px;
}
.table {
position: relative;
border-collapse: separate;
border-spacing: 0 10px;
}
.table td,
.table th,
.table tr,
.table thead,
.table tbody {
border: none;
position: relative;
}
.table thead th {
border: none;
padding-top: 0;
padding-bottom: 0;
}
tbody {
position: relative;
}
tbody tr {
border-radius: 8px;
margin-bottom: 20px;
position: relative;
}
tbody tr::after {
content: '';
width: 100%;
position: absolute;
left: 0;
right: 0;
background-color: #fff;
height: 48px;
z-index: 0;
border-radius: 8px;
}
tbody td {
z-index: 1;
}
<html lang="en" class="">
<head>
<meta charset="UTF-8">
<title>Demo</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css">
</head>
<body>
<div class="page-wrapper">
<div class="container pt-3">
<div class="table-responsive">
<table class="table no-wrap" style="
position: relative;
">
<thead>
<tr>
<th>SN</th>
<th>Description 1</th>
<th>Description 2</th>
<th>Description 3</th>
<th>Description 4</th>
<th>Description 5</th>
<th>Description 6</th>
<th>Description 7</th>
<th>Description 8</th>
<th>Description 9</th>
<th>Description 10</th>
<th>Container</th>
<th>Pickup Date</th>
<th>Return Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
<tr>
<td>1</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>This Area is for text description</td>
<td>UKS127398SLA</td>
<td>2020-12-12</td>
<td>2020-12-12</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>