Answer the question
In order to leave comments, you need to log in
How to set padding between slides in SLICK?
The slider itself considers the width of the slides (can I somehow set the width myself?), It adjusted more or less by setting the width of the container where the slider itself lies.
BUT there was a problem, I set 10 slides in 2 lines (5 in each). But I can't set the indents between the slides.
Link to slider off page kenwheeler.github.io/slick Slider
code
$(document).ready(function () {
$('.slaider-spares').slick({
slidesToShow: 5,
slidesToScroll: 1,
rows: 2,
});
});
Answer the question
In order to leave comments, you need to log in
you set styles for .slick-slide {padding: 0 15px;} for example. and for container margin: 0 -15px;
In 2021, it is enough for the parent of the slides to set such styles
column-gap: 78px
flex-wrap: wrap
row-gap: 0px
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question