JSFiddle - React, Tailwind, and code Playground

by Hashem Qolami

HTML

<ul>
    <li>List item #1</li>
    <li>List item #2</li>
    <li>List item #3</li>
    <li>List item #4</li>
    <li>List item #5</li>
    <li>List item #6</li>
    <li>List item #7</li>
    <li>List item #8</li>
    <li>List item #9</li>
    <li>List item #10</li>
    <li>List item #11</li>
</ul>

CSS

li:nth-child(3n+3) {
    background-color: gold;
}