I have a table styled with CSS with even and odd. The td even/odd CSS codes:
#table_box tr:nth-child(odd) td { background-color:#ffffff } /*odd*/
#table_box tr:nth-child(even) td { background-color:#f5f9fa } /* even*/
#table_box tr:hover td { background-color:#fffbae; } /* hovering */

I want to have multi even/odd color rows styles like the below image:

Can I do this with CSS? I was trying to do it but colors don’t show and just even/odd styled.
Use this fragments:
HTML changes:
CSS changes:
You’ll need to tweak it some more to fit your desired output, but I guess the general idea is clear.
You could also do it with plain CSS without changing your HTML code if you want:
etc.