Use contextual classes to color table rows or cells.
Class | 1 | 2 | 3 |
---|---|---|---|
active | 1 | 2 | 3 |
success | 1 | 2 | 3 |
error | 1 | 2 | 3 |
warning | 1 | 2 | 3 |
info | 1 | 2 | 3 |
<!-- On rows -->
<tr class="active">...</tr>
<tr class="success">...</tr>
<tr class="warning">...</tr>
<tr class="danger">...</tr>
<tr class="info">...</tr>
<!-- On cells (`td` or `th`) -->
<tr>
<td class="active">...</td>
<td class="success">...</td>
<td class="warning">...</td>
<td class="danger">...</td>
<td class="info">...</td>
</tr>