C
C#7mo ago
AK sanTari

✅ Grister.js - alternate row colour

I'm trying to get my grid to colour every other row in a different colour (like grey for odd ones and white for even ones) This is what i use in CSS:
:nth-child(even){ background: var(--custom-primary-light); }
:nth-child(even){ background: var(--custom-primary-light); }
However when the number of displayed rows are odd, it colours every other column too: How can I sort this? (the number of columns is dynamic - the user can add/remove them in settings) Full html and CSS aaaa
2 Replies
Murten
Murten7mo ago
Uhm, this is a C# server.
AK sanTari
AK sanTari7mo ago
kekw just realized that