I am attempting to create a table with alternating row colors of green and yellow in sets of two. I have been using :nth-child but it is not working correctly. My table is automated using Angular 6 and styled with Angular Material 6.
If you would like to see my experimentation, you can view the stackblitz here: https://stackblitz.com/edit/angular-f6vmrt
Upon request, here is a screenshot of the table displayed in the browser:
In the screenshot, you'll notice that the first td cell is blue while the second remains the default color (white).https://i.sstatic.net/fDQ3v.png