I want to create a Loop of cards with different background colours. How can I do this without the latter cards Inheriting the background colour of the first card?
1 Like
Hey, the simplest way to achieve this is to add a class to a loop tag that you want to style separately or you can target the tag through divhunt selectors or custom css, but I would go with a class.
For your case, it is better to go with nth-child CSS property. Its easier. But in video I both explained nth-child & class system for loop.
1 Like
It worked! I really appreciate you making that video, it really helped.
Thank you both for your support. 5 stars incoming!
2 Likes