html - Selecting every third element except for a few (in unordered list) -
How can I select every other 3 elements in an unordered list like below? I have & lt; Li & gt; There is a random amount of
but I need the third, ninth, fifteen, etc. for example every second 3. Is this possible in HTML or CSS or javascript?
& lt; Ul & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; ... & lt; / Ul & gt;
You actually want to select each sixth element Looking for, but starting with the third:
ul li: nth-child (6n + 3)
Comments
Post a Comment