mercredi 15 avril 2015

CSS selector for middle element in row of 3


Vote count:

0




I have rows of children, each row has 3 elements. I need a selector for the middle element in each row.



nth-child(3n+2)


This works if the total children divides exactly by 3. But if there are say 10 elements, it selects the last column.



asked 2 mins ago







CSS selector for middle element in row of 3

Aucun commentaire:

Enregistrer un commentaire