mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-02 01:42:36 +02:00
Fix #17511 by adding mention to the docs for how to extend the card columns
This commit is contained in:
@@ -576,3 +576,16 @@ Only applies to small devices and above.
|
||||
</div>
|
||||
</div>
|
||||
{% endexample %}
|
||||
|
||||
Card columns can also be extended and customized with some additional code. Shown below is an extension of the `.card-columns` class using the same CSS we use—CSS columns— to generate a set of responsive tiers for changing the number of columns.
|
||||
|
||||
{% highlight scss %}
|
||||
.card-columns {
|
||||
@include media-breakpoint-only(lg) {
|
||||
column-count: 4;
|
||||
}
|
||||
@include media-breakpoint-only(xl) {
|
||||
column-count: 5;
|
||||
}
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
Reference in New Issue
Block a user