0

I am using rendering variant to render list of items and i need to add special styles depending on the index of the item being rendered, is there a way to handle this?

1

Sure you can. This is where the :nth-child() and the :nth-last-child() pseudo-classes come into play. You can achieve all that you want just with pure CSS styling.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.