Crosstab color formatting

Hello Helical Team,

I am using helical insight EE version 5.0. There are many cells in crosstab which does not have data. I understand that there is color property but it is not affecting the empty cells.

So basically what I want is that if the cells are empty then it should be red color and if it has any values then it should be green color.

Thanks,
Netta.

Hello Netta,

You can create the crosstab report. Then in the “CSS” placeholder you can put the below mentioned code in the “Operations”

td.e-valuescontent
{
background-color: green !important;
}
td.e-valuescontent:has(div:empty)
{
background-color: red !important;
}

image

NB: this will work on all browsers except for Firefox

For Firefox, this will work, up until version 102

From version 103: this feature is behind the layout.css.has-selector.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config. in your browser.

Thank You,
Helical Insight.