Using rows: 2 and on responsive row: 1 doesn't work
See original GitHub issueI need to have 1 row when going responsive < 680 px and show 2 items per row. Somehow that doesn’t work.
I have made a JSFiddle; https://jsfiddle.net/b5bqk68j/925/
(refresh when on < 680 px wide)
My Slick call;
$('.slider-4st').slick({
dots: false,
arrows: true,
nextArrow: '<div class="next"><i>»</i></div>',
prevArrow: '<div class="prev"><i>«</i></div>',
infinite: false,
speed: 300,
slidesPerRow: 4,
rows: 2,
adaptiveHeight: true,
//slidesToShow: 4,
//slidesToScroll: 4,
responsive: [
{
breakpoint: 1024,
settings: {
slidesPerRow: 3
}
},
{
breakpoint: 680,
settings: {
rows: 1,
slidesPerRow: 2
}
},
{
breakpoint: 480,
settings: {
rows: 1,
slidesPerRow: 1
}
}
]
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:12
Top Results From Across the Web
Slick show 2 row, 6 items on desktop and 1 ... - Stack Overflow
I'm trying to accomplish 2 rows and 6 items on the full width and 1 row with 1 item on mobile. $('.your-class').slick({ slidesToShow:...
Read more >CSS for Rows & Responsive Not working properly
1. Can't set the second row to a different colour (setting different column colours works though) and it's also not picking up the...
Read more >grid-template-rows - CSS: Cascading Style Sheets | MDN
The grid-template-rows CSS property defines the line names and track sizing functions of the grid rows.
Read more >slick - the last carousel you'll ever need - Ken Wheeler
To fix it, I set the '.slick-slide' wrapper to 'display: block; float: left' - then set the element inside of the wrapper (in...
Read more >Grid system - Bootstrap
Bootstrap's grid system uses a series of containers, rows, and columns to ... <div class="container"> <div class="row"> <div class="col"> 1 of 2 </div>...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try to use slick 1.8.1 and
slick.js
file. Its important causeslick.min.js
is broken in 1.8.1I just want to confirm that @rosivanov 's suggestion to use the un-minified 1.8.1 resolved the issue for me. Thanks.