Different background color based on position

I wanted to have different background colors for post tiles for one of my webpages. The goal was to dynamically set a specific color since there will be more posts in the future. Here I’m going to show how to achieve this with CSS. nth-of-type In the below example we have a grid with 4 … Read more