JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<th>Nick</th>
<th><span style="float: right">Wpłata</span></th>
</tr>
<tr>
<td>Nick</td>
<td><span style="float: right" class="prefix prefix szukam">0 zł</span></td>
CSS
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
.prefix {
color: #fff;
display: inline-block;
height: 15px;
line-height: 15px;
padding: 3px 5px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
font-size: 10px;
font-weight: bold;
}
.prefix.szukam {
background: green;
}