.adev-sv__col {
--columns-per-row: 4;
--gap: 15px;
--size: 70%;
flex: 0 0 var(--size);
width: var(--size);
margin-right: var(--gap);
@media (min-width:568px) {
& {
--total-margin: calc(var(--gap) * (var(--columns-per-row) - 1));
--size: calc((100% - var(--total-margin)) / var(--columns-per-row));
}
}
@media (min-width:768px) {
& {
--columns-per-row: 3;
}
}
@media (min-width:992px) {
& {
--columns-per-row: 4;
--gap: 30px;
}
}
@media (min-width:1200px) {
& {
--columns-per-row: 5;
}
}
}
Last active
August 31, 2025 23:34
-
-
Save Arifursdev/b5891b359dc1da48b666de47f11df47d to your computer and use it in GitHub Desktop.
how-to-add-gap-between-cells-in-a-flickity-carousel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment