CSS odd/even

Hi,
after crushing my head trying to make this css work:

.svy-form .ui-grid-row:nth-child(odd) .ui-grid-cell {
   background-color: #ffffff;
}

.svy-form .ui-grid-row:nth-child(even) .ui-grid-cell {
   background-color: Silver;
}

I discovered that the only way to get it working is to use “labels” instead of “text_fields”.

Is this the only way to work on the NGClient to get odd/even row color effect?
Have I to substitute all my text fields within the whole solution with labels?

This also works for fields. Make sure they are set to transparent.

Hi Joas,
thank you for your help, it works!

The problem was about the transparency…