alternate css for datatable with spans

Hi,

I need different color for alternate span of datatable how should I achieve this.
just like second plain datatable in given snippet.(same css has applied for both)

https://snippet.webix.com/mjule1sm

Hi @Komal,
the difference here is that in the first table, nth-child(2n) will go over elements in a horizontal order, while in the second table it will do so vertically, that’s why you get a funky layout in the second case (you can see this in action when you make an even number of columns that are spanned - https://snippet.webix.com/apatoths). So you have to style spans which go horizontally at the same time as styling the rows that are not spanned and go vertically. That’s why I’m not sure on how you could conviniently achieve this, here’s a very rough idea of what I mean: https://snippet.webix.com/bfo3eupl you can still acess the span rows and style them (perhaps you can make a css variable as well), but you have to then also add css to the unspanned rows separately.
Alternatively, you can also add css classes to the individual spans themselves (https://docs.webix.com/api__ui.datatable_spans_config.html last property) and style that - https://snippet.webix.com/8ekgn1oc. Either way, both ways don’t seem great.

Thank you so much! I am trying this.