D
D
DeniSidorenko2017-12-20 20:32:39
JavaScript
DeniSidorenko, 2017-12-20 20:32:39

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

1 answer(s)
S
Stalker_RED, 2017-12-20
@Stalker_RED

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 question

Ask a Question

731 491 924 answers to any question