D
D
Dmitry2017-01-23 19:13:38
css
Dmitry, 2017-01-23 19:13:38

Applying styles only to active owl carousel blocks?

I have 5 reviews. Displayed by 3. It is necessary that the text of the first displayed review be aligned to the left, the second to the center and the third to the right. I attached the styles to the class .activevia nth-childcss. But here's an example, we have active first in a row, but its styles are still those that were applied when the page loaded. Why are styles only applied at load time and not changed dynamically? In a slick, this method would work without problems. beba4735a0d24dde897dfd7956e286aa.pngUPD: example , you need to scroll down to the reviews

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Volf, 2017-01-23
@letehaha

Applying styles only to active owl carousel blocks?

Offhand - only through JS, because CSS doesn't (yet) have a "previous element" selector.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question