B
B
B1G1D1L2020-08-08 14:46:56
Slider
B1G1D1L, 2020-08-08 14:46:56

How to add different css styles to different slik slider sliders?

There are two slik sliders on the page. They have different classes and are initialized in the same js file. But how to add custom css styles to sliders? The first slider has styles added to the classes that the slik slider adds automatically. Because of this, the second slider inherits these properties! If you connect a separate file with styles for the second slide, then how to make it change the styles individually for the second slider and not affect the first one?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2020-08-08
@Ankhena

.slider-1 .next {красный}
.slider-2 .next {зеленый}

Assuming .next is the class of the forward button

Z
Zagoruyko Victor, 2020-08-09
@zacompom

Give each slider its own ID or unique class and jump from here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question