1
I have a read and wanted to get the elements that are written MARKED below. But I used the Nth-of-type, it works to get the 4 element always, but I could not get the next one. Could someone help me to always pick up 1 after the first item where it is written?
ul li&:nth-of-type(1){color: red;}
ul li&:nth-of-type(4n){color: red;}
<ul>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number</li>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number MARCADO</li>
<li class="col-sm-3">number</li>
</ul>
These LI’s can be registered, that is, they can have millions of li’s. .
– concas
What is the default ? if you want a yes/another you cannot use
ul li:nth-child(2n){
 color: red;
} 

– Gabriel Rodrigues
If you do not have a certain pattern and only there is a marking in the text indicating that it should have such a configuration I believe you will have to check the value with javascript and add the css
– Gabriel Rodrigues