In my project with Bootstrap 4 (Alpha 3), I am working on customizing the number of columns in Card Columns. The documentation provides an example that shows how to set different column counts based on screen size:
.card-columns {
@include media-breakpoint-only(lg) {
column-count: 4;
}
@include media-breakpoint-only(xl) {
column-count: 5;
}
}
Since the default column count is 3 (except for small devices), I attempted to change it to 2 columns using additional CSS code after including the 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;
}
}
However, despite my efforts, the result still shows 3 columns instead of 2. What could be causing this issue?
I appreciate any assistance you can provide! Thank you.