set even or odd visibility of list view?

0
can I show only even elements in list view or only odd elements in list view.
asked
1 answers
0

To show only even listview items:

.mx-listview ul li:nth-child(odd) {
  display: none;
}

To show only odd listview items:

.mx-listview ul li:nth-child(even) {
  display: none;
}

 

answered