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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -