Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make alignment on the left side in the slick slider?

Tags:

javascript

css

I have a slider. It shows three elements, but when there are two or one elements, then it centers them, and I need to be aligned to the left.

jQuery(function () {
    jQuery('.slider-blog').slick({
        arrows: false,
        dots: true,
        infinite: true,
        speed: 300,
        slidesToShow: 3,
        slidesToScroll: 1,  
      });
 });
like image 299
Nikita Kurilovic Avatar asked Mar 03 '23 00:03

Nikita Kurilovic


1 Answers

This works .slick-track{ margin-left: 0; }

like image 189
JAYRleo Avatar answered Mar 05 '23 14:03

JAYRleo