css nth-child selector formula -


i have list of html items , need select every 3 on 3. (1,2,3,7,8,9,13,14,15 e.t.c)

please suggest me, possible using css nth-child selector , formula should in parentheses? or way javascript?

hooray! i've found solution! answers! version is:

.item:nth-child(1+6n), .item:nth-child(2+6n), .item:nth-child(3+6n) {    /* styles */ } 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -