I use in Bootstrap 4 (Alpha 3) Card Colums and try to customize the number of colums. There is the following example in the Docs:
.card-columns {
@include media-breakpoint-only(lg) {
column-count: 4;
}
@include media-breakpoint-only(xl) {
column-count: 5;
}
}
As the default column-count is 3 (except for sm devices), I try to reduce the default to 2 columns, using the following code in an additional CSS file (after Bootstrap CSS):
.card-columns {
@include media-breakpoint-only(sm) {
column-count: 2;
}
@include media-breakpoint-only(md) {
column-count: 2;
}
@include media-breakpoint-only(lg) {
column-count: 2;
}
@include media-breakpoint-only(xl) {
column-count: 2;
}
}
But, unfortunately, the result is still 3 columns. What am I doing wrong?
Thank you very much for your help!