Skip to content
Advertisement

Slick Carousel showing vertical on mobile instead of horizontal

I have a Slick Carousel in my webflow site. Desktop, tablet works fine, but when I switch to mobile the items are stacked up in vertical order instead of horizontal. Interesting fact is that when I open chrome dev tools and squeze the width of the page to mobile, it works fine, but when I actualy use the Mobile Responsive button or my phone it’s vertical.

My JS:

JavaScript

Link to the site: https://refokus-c0da71.webflow.io/

If you want the html of the section

JavaScript

Thanks, any help appreciated

Advertisement

Answer

For the following part of your code, add display: 'flex'.

JavaScript

It is currently defaulting to display: 'block', so when the width is less, it is automatically wrapping vertically.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement