I am working on a Thumbnail Slider like here:
https://splidejs.com/tutorials/thumbnail-slider/
on big screens the thumbs are left aligned. I tried to center them.
see https://codepen.io/caplod/pen/ExboPyP
but then the first one gets cut off on small screens.
#thumb .splide__list {
justify-content: center
}
how can I fix this?
Puedes agregar un contenedor a splide, funciono para mi
#container{
display : flex;
justify-content : center;
}
Add code align-items:center;
#thumb .splide__list {
justify-content: center;
align-items:center;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.