Hi community!
I recently got an interesting question in our user support channel:
Is it possible to set conditional coloring of the total based on its positive/negative value?
And I came up with the following trick…
td.cell.flag-readOnly.flag-number.annotation-total.annotation-explicit.annotation-sum input {
color: green;
}
td.cell.flag-readOnly.flag-number.annotation-total.annotation-explicit.annotation-sum input[value*="-"] {
color: red;
}
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/76f4748d-44e5-44cb-8ec9-815409d1035a.png)
Remark: You may use the same idea to hide zeros in the totals :)