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

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -