Check out example codes for "css child multiple of 3". It will help you in understanding the concepts better.

Code Example 1

:nth-child(3n) {}

Learn ReactJs, React Native from akashmittal.com