Answer the question
In order to leave comments, you need to log in
How to set different class for owl-item?
Good afternoon. Who used OWl knows that if you set items:2, then 2 items are shown and they are given the active class. It is possible that the second one would have a unique class. For example, the first is active and the second is active+twoactive. needed for styling
Answer the question
In order to leave comments, you need to log in
But why, if nth-of-type is possible?
.active {
border: red 3px solid;
}
.active:nth-of-type(2) {
border: red 3px dashed;
}
https://jsfiddle.net/7nv5po1u/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question