diff --git a/site/docs/4.3/components/card.md b/site/docs/4.3/components/card.md index 7d04f45161..3e2e12db5f 100644 --- a/site/docs/4.3/components/card.md +++ b/site/docs/4.3/components/card.md @@ -623,12 +623,12 @@ Just like with card groups, card footers in decks will automatically line up. ### Grid cards -Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how many grid columns (wrapped around your cards) you show per row. +Use the Bootstrap grid system and its [`.row-cols` classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/layout/grid/#row-columns) to control how many grid columns (wrapped around your cards) you show per row. For example, here's `.row-cols-md-2` splitting four cards to equal width across multiple rows, from the medium breakpoint up. {% capture example %} -
-
-
+
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -636,8 +636,8 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man
-
-
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -645,8 +645,8 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man
-
-
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -654,8 +654,8 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man
-
-
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -667,10 +667,12 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man {% endcapture %} {% include example.html content=example %} +Change it to `.row-cols-3` and you'll see the fourth card wrap. + {% capture example %} -
-
-
+
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -678,8 +680,8 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man
-
-
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -687,8 +689,8 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man
-
-
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title
@@ -696,8 +698,52 @@ Use the Bootstrap grid system and its [`.rol-cols` classes]() to control how man
-
-
+
+
+ {% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %} +
+
Card title
+

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

+
+
+
+
+{% endcapture %} +{% include example.html content=example %} + +When you need equal height, add `.h-100` to the cards. + +{% capture example %} +
+
+
+ {% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %} +
+
Card title
+

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

+
+
+
+
+
+ {% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %} +
+
Card title
+

This is a short card.

+
+
+
+
+
+ {% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %} +
+
Card title
+

This is a longer card with supporting text below as a natural lead-in to additional content.

+
+
+
+
+
{% include icons/placeholder.svg width="100%" height="140" class="card-img-top" text="Image cap" %}
Card title