Below is a screenshot that I have recreated using HTML & CSS.
https://i.sstatic.net/6d3to.jpg
To view the recreated screenshot, check out this fiddle. Bootstrap 4 was used to create the table.
Here are some snippets of the HTML and CSS code used to create the rows:
HTML:
<div class="body-manage-attendees">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col" class="number">Number</th>
<th scope="col" class="table2">Table</th>
<th scope="col" class="status">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Eve Doe</td>
<td class="number1">250</td>
<td class="table1">4</td>
<td class="right-itemsreceived">Items Received</td>
</tr>
<tr>
<td class="left">Fred Doe</td>
<td class="number1">250</td>
<td class="table1">2</td>
<td class="right-itemsreceived">Items Received</td>
</tr>
<tr>
<td class="left">Fred Doe's Guest 1</td>
<td class="number1">250</td>
<td class="table1">2</td>
<td class="right-itemswaiting"> Items Waiting</td>
</tr>
<tr>
<td class="left">Jack Doe</td>
<td class="number1">14</td>
<td class="table1">4</td>
<td class="right-unpaid">Unpaid</td>
</tr>
</tbody>
</table>
</div>
CSS:
.table td,
.table th {
border-top: none! important;
padding-left: 3%;
}
.table thead th {
border-bottom: none! important;
}
.table td.left {
padding-right: 32%;
}
.body-manage-attendees tbody tr:hover {
background-color: #EDEDED;
}
.body-manage-attendees .number {
padding-left: 2%;
padding-right: 6%;
}
.body-manage-attendees .table1 {
padding-left: 1%;
text-align: center;
padding-right: 6%;
}
.body-manage-attendees .table2 {
padding-left: 1%;
text-align: center;
padding-right: 6%;
}
.body-manage-attendees .status {
padding-left: 1%;
text-align: center;
}
.body-manage-attendees .right {
padding-left: 1%;
text-align: center;
}
.body-manage-attendees .right-bill {
padding-left: 1%;
color: white;
text-align: center;
background-color: #1173B7;
}
.body-manage-attendees .right-nobill {
padding-left: 1%;
text-align: center;
color: black;
}
Challenge:
I am seeking advice on modifying the CSS codes above to ensure that the square box (indicated by an arrow in the screenshot) appears inside the colored rectangle.