x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<table class="table">
<thead>
<tr>
<th>Invoice</th>
<th>Status</th>
<th>Method</th>
<th class="text-end">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th>INV001</th>
<td>Paid</td>
<td>Credit Card</td>
<td class="text-end">$250.00</td>
</tr>
<tr>
<th>INV002</th>
<td>Pending</td>
<td>PayPal</td>
<td class="text-end">$150.00</td>
</tr>
<tr>
<th>INV003</th>
<td>Unpaid</td>
<td>Transfer</td>
<td class="text-end">$350.00</td>
</tr>
<tr>
<th>INV004</th>
<td>Paid</td>
<td>Credit Card</td>
<td class="text-end">$450.00</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">Paid</td>
<td class="text-end">$2,500.00</td>
</tr>
</tfoot>
</table>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<table class="table">
<thead>
<tr>
<th>Invoice</th>
<th>Status</th>
<th>Method</th>
<th class="text-end">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th>INV001</th>
<td>Paid</td>
<td>Credit Card</td>
<td class="text-end">$250.00</td>
</tr>
<tr>
<th>INV002</th>
<td>Pending</td>
<td>PayPal</td>
<td class="text-end">$150.00</td>
</tr>
<tr>
<th>INV003</th>
<td>Unpaid</td>
<td>Transfer</td>
<td class="text-end">$350.00</td>
</tr>
<tr>
<th>INV004</th>
<td>Paid</td>
<td>Credit Card</td>
<td class="text-end">$450.00</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">Paid</td>
<td class="text-end">$2,500.00</td>
</tr>
</tfoot>
</table>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
:where(.table) {
font-size: var(--text-sm);
inline-size: var(--size-full);
thead {
color: var(--color-text-subtle);
}
tbody tr {
border-block-start-width: var(--border);
}
tr:hover {
background-color: rgb(from var(--color-border-light) r g b / .5);
}
th {
font-weight: var(--font-medium);
text-align: start;
}
th, td {
padding: var(--size-4);
}
tfoot {
background-color: var(--color-border-light);
border-block-start-width: var(--border);
font-weight: var(--font-medium);
}
}
Java Script is not required or multiple files are needed, check the notes.