E
E
Evgeny Kholodov2018-02-22 11:25:57
css
Evgeny Kholodov, 2018-02-22 11:25:57

How to set properties for the first active slide in owl.carousel2?

Good day. There is a task to set the properties to the first of two active slides. Why doesn't this build work?

.owl-carousel .owl-item.active:first-child .slide{
font-size: 18px;
}
.owl-carousel .slide{
font-size: 16px;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kreotech, 2018-02-22
@holodovz

If the active slides are located in a row or related, within the same parent:

.owl-carousel .owl-item.active .slide{
font-size: 18px;
}
.owl-carousel .owl-item.active ~ .owl-item.active .slide{
font-size: 16px;
}
.owl-carousel .slide{
font-size: 16px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question