mercredi 30 avril 2014

Grab every 5th tag but only if it doesn't have any children?


Vote count:

0




Ok I'm recently learning CSS and wanted to figure something out for my site but cannot comprehend how to do this.


I want to garb every third li (beginning with the second li) except I dont want it if its either


1) Has any children


2) Has a class assigned to it.


Is this possible with css or javascript?


Thank you



<ol>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
.....
</ol>


asked 41 secs ago






Aucun commentaire:

Enregistrer un commentaire