On the homepage of my website, article summaries are posted. Each article summary has its own background color, but these colors are only visible on devices smaller than 768px. For proper appearance I have five colors that I want to display, with color #1 always being attached to the most recent post, color #2 to the next most recent post, color #3…, color #4…, color #5…, and then I want to repeat the cycle as many times as is necessary when more than 5 previews are displayed.
How do I set up the background colors to display Color #1 through Color #5 and then repeat Color #1 through Color #5 completely independent of the article previews?
Thanks,
MikeCJ