td {
width: 25%; /* only for demo, not really required */
background-image: linear-gradient(to right, rgba(0, 150, 0, 1) 0%, rgba(0, 175, 0, 1) 17%, rgba(0, 190, 0, 1) 33%, rgba(82, 210, 82, 1) 67%, rgba(131, 230, 131, 1) 83%, rgba(180, 221, 180, 1) 100%); /* your gradient */
background-repeat: no-repeat; /* don't remove */
}
td.negative {
background-image: linear-gradient(to left, rgba(0, 150, 0, 1) 0%, rgba(0, 175, 0, 1) 17%, rgba(0, 190, 0, 1) 33%, rgba(82, 210, 82, 1) 67%, rgba(131, 230, 131, 1) 83%, rgba(180, 221, 180, 1) 100%); /* your gradient */
background-position: 100% 100%;
}
/* just for demo */
table {
table-layout: fixed;
width: 400px;
}
table, tr, td {
border: 1px solid;
}
<table>
<tr>
<td style='background-size: 90% 100%'>90%</td>
<td style='background-size: 50% 100%'>50%</td>
<td style='background-size: 20% 100%'>20%</td>
<td style='background-size: 100% 100%'>100%</td>
</tr>
<tr>
<td style='background-size: 90% 100%' class='negative'>-90%</td>
<td style='background-size: 50% 100%' class='negative'>-50%</td>
<td style='background-size: 20% 100%' class='negative'>-20%</td>
<td style='background-size: 100% 100%'>100%</td>
</tr>
</table>
당신을했다 시도 코드가 있습니까? – falguni