S
S
Shine_972019-09-26 16:19:42
css
Shine_97, 2019-09-26 16:19:42

How to properly style dots in Slick Slider?

There is such a design of points in the slider
5d8cb9bd98006915476465.jpeg
, which by design have an active point - width: 8px and height: 8px, the second one - width: 6px and height: 6px, and the third one - width: 4px and height: 4px, but it doesn’t work make the dots the same size.
How to fix it and implement exactly this kind of points? Here is a link to CodePen with what I got.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-09-26
@Shine_97

.slick-dots button {
font-size:0;
padding:0;
}
.slick-dots li:nth-child(1) button {
width:8px;
height:8px;
}
.slick-dots li:nth-child(2) button {
width:6px;
height:6px;
}
.slick-dots li:nth-child(3) button {
width:4px;
height:4px;
}

LK8Szf0C1Tc.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question