To create tables with 3 rows and 2 columns using divs, I have utilized the ng-repeat
directive. Within this setup, there are two CSS classes - red and green, that need to be applied in the following manner:
- Red class for the 1st column of the 1st row
- Green class for the 2nd column of the 1st row
- Green class for the 1st column of the 2nd row
- Red class for the 2nd column of the 2nd row
- Red class for the 1st column of the 3rd row
- Green class for the 2nd column of the 3rd row
I am looking for a way to efficiently implement these CSS rules. Any suggestions on how to achieve this setup?