Stripped personal data from development repository
Samo Penic
2019-02-20 83c3f647c35477564b77cbc5b36d37d793d5442a
commit | author | age
83c3f6 1 ---
SP 2 layout: docs
3 title: Cards
4 description: Bootstrap's cards provide a flexible and extensible content container with multiple variants and options.
5 group: components
6 toc: true
7 ---
8
9 ## About
10
11 A **card** is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. If you're familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.
12
13 ## Example
14
15 Cards are built with as little markup and styles as possible, but still manage to deliver a ton of control and customization. Built with flexbox, they offer easy alignment and mix well with other Bootstrap components. They have no `margin` by default, so use [spacing utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/) as needed.
16
17 Below is an example of a basic card with mixed content and a fixed width. Cards have no fixed width to start, so they'll naturally fill the full width of its parent element. This is easily customized with our various [sizing options](#sizing).
18
19 {% capture example %}
20 <div class="card" style="width: 18rem;">
21   {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
22   <div class="card-body">
23     <h5 class="card-title">Card title</h5>
24     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
25     <a href="#" class="btn btn-primary">Go somewhere</a>
26   </div>
27 </div>
28 {% endcapture %}
29 {% include example.html content=example %}
30
31 ## Content types
32
33 Cards support a wide variety of content, including images, text, list groups, links, and more. Below are examples of what's supported.
34
35 ### Body
36
37 The building block of a card is the `.card-body`. Use it whenever you need a padded section within a card.
38
39 {% capture example %}
40 <div class="card">
41   <div class="card-body">
42     This is some text within a card body.
43   </div>
44 </div>
45 {% endcapture %}
46 {% include example.html content=example %}
47
48 ### Titles, text, and links
49
50 Card titles are used by adding `.card-title` to a `<h*>` tag. In the same way, links are added and placed next to each other by adding `.card-link` to an `<a>` tag.
51
52 Subtitles are used by adding a `.card-subtitle` to a `<h*>` tag. If the `.card-title` and the `.card-subtitle` items are placed in a `.card-body` item, the card title and subtitle are aligned nicely.
53
54 {% capture example %}
55 <div class="card" style="width: 18rem;">
56   <div class="card-body">
57     <h5 class="card-title">Card title</h5>
58     <h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
59     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
60     <a href="#" class="card-link">Card link</a>
61     <a href="#" class="card-link">Another link</a>
62   </div>
63 </div>
64 {% endcapture %}
65 {% include example.html content=example %}
66
67 ### Images
68
69 `.card-img-top` places an image to the top of the card. With `.card-text`, text can be added to the card. Text within `.card-text` can also be styled with the standard HTML tags.
70
71 {% capture example %}
72 <div class="card" style="width: 18rem;">
73   {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
74   <div class="card-body">
75     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
76   </div>
77 </div>
78 {% endcapture %}
79 {% include example.html content=example %}
80
81 ### List groups
82
83 Create lists of content in a card with a flush list group.
84
85 {% capture example %}
86 <div class="card" style="width: 18rem;">
87   <ul class="list-group list-group-flush">
88     <li class="list-group-item">Cras justo odio</li>
89     <li class="list-group-item">Dapibus ac facilisis in</li>
90     <li class="list-group-item">Vestibulum at eros</li>
91   </ul>
92 </div>
93 {% endcapture %}
94 {% include example.html content=example %}
95
96 {% capture example %}
97 <div class="card" style="width: 18rem;">
98   <div class="card-header">
99     Featured
100   </div>
101   <ul class="list-group list-group-flush">
102     <li class="list-group-item">Cras justo odio</li>
103     <li class="list-group-item">Dapibus ac facilisis in</li>
104     <li class="list-group-item">Vestibulum at eros</li>
105   </ul>
106 </div>
107 {% endcapture %}
108 {% include example.html content=example %}
109
110 ### Kitchen sink
111
112 Mix and match multiple content types to create the card you need, or throw everything in there. Shown below are image styles, blocks, text styles, and a list group—all wrapped in a fixed-width card.
113
114 {% capture example %}
115 <div class="card" style="width: 18rem;">
116   {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
117   <div class="card-body">
118     <h5 class="card-title">Card title</h5>
119     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
120   </div>
121   <ul class="list-group list-group-flush">
122     <li class="list-group-item">Cras justo odio</li>
123     <li class="list-group-item">Dapibus ac facilisis in</li>
124     <li class="list-group-item">Vestibulum at eros</li>
125   </ul>
126   <div class="card-body">
127     <a href="#" class="card-link">Card link</a>
128     <a href="#" class="card-link">Another link</a>
129   </div>
130 </div>
131 {% endcapture %}
132 {% include example.html content=example %}
133
134 ### Header and footer
135
136 Add an optional header and/or footer within a card.
137
138 {% capture example %}
139 <div class="card">
140   <div class="card-header">
141     Featured
142   </div>
143   <div class="card-body">
144     <h5 class="card-title">Special title treatment</h5>
145     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
146     <a href="#" class="btn btn-primary">Go somewhere</a>
147   </div>
148 </div>
149 {% endcapture %}
150 {% include example.html content=example %}
151
152 Card headers can be styled by adding `.card-header` to `<h*>` elements.
153
154 {% capture example %}
155 <div class="card">
156   <h5 class="card-header">Featured</h5>
157   <div class="card-body">
158     <h5 class="card-title">Special title treatment</h5>
159     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
160     <a href="#" class="btn btn-primary">Go somewhere</a>
161   </div>
162 </div>
163 {% endcapture %}
164 {% include example.html content=example %}
165
166 {% capture example %}
167 <div class="card">
168   <div class="card-header">
169     Quote
170   </div>
171   <div class="card-body">
172     <blockquote class="blockquote mb-0">
173       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
174       <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
175     </blockquote>
176   </div>
177 </div>
178 {% endcapture %}
179 {% include example.html content=example %}
180
181 {% capture example %}
182 <div class="card text-center">
183   <div class="card-header">
184     Featured
185   </div>
186   <div class="card-body">
187     <h5 class="card-title">Special title treatment</h5>
188     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
189     <a href="#" class="btn btn-primary">Go somewhere</a>
190   </div>
191   <div class="card-footer text-muted">
192     2 days ago
193   </div>
194 </div>
195 {% endcapture %}
196 {% include example.html content=example %}
197
198 ## Sizing
199
200 Cards assume no specific `width` to start, so they'll be 100% wide unless otherwise stated. You can change this as needed with custom CSS, grid classes, grid Sass mixins, or utilities.
201
202 ### Using grid markup
203
204 Using the grid, wrap cards in columns and rows as needed.
205
206 {% capture example %}
207 <div class="row">
208   <div class="col-sm-6">
209     <div class="card">
210       <div class="card-body">
211         <h5 class="card-title">Special title treatment</h5>
212         <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
213         <a href="#" class="btn btn-primary">Go somewhere</a>
214       </div>
215     </div>
216   </div>
217   <div class="col-sm-6">
218     <div class="card">
219       <div class="card-body">
220         <h5 class="card-title">Special title treatment</h5>
221         <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
222         <a href="#" class="btn btn-primary">Go somewhere</a>
223       </div>
224     </div>
225   </div>
226 </div>
227 {% endcapture %}
228 {% include example.html content=example %}
229
230 ### Using utilities
231
232 Use our handful of [available sizing utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/sizing/) to quickly set a card's width.
233
234 {% capture example %}
235 <div class="card w-75">
236   <div class="card-body">
237     <h5 class="card-title">Card title</h5>
238     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
239     <a href="#" class="btn btn-primary">Button</a>
240   </div>
241 </div>
242
243 <div class="card w-50">
244   <div class="card-body">
245     <h5 class="card-title">Card title</h5>
246     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
247     <a href="#" class="btn btn-primary">Button</a>
248   </div>
249 </div>
250 {% endcapture %}
251 {% include example.html content=example %}
252
253 ### Using custom CSS
254
255 Use custom CSS in your stylesheets or as inline styles to set a width.
256
257 {% capture example %}
258 <div class="card" style="width: 18rem;">
259   <div class="card-body">
260     <h5 class="card-title">Special title treatment</h5>
261     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
262     <a href="#" class="btn btn-primary">Go somewhere</a>
263   </div>
264 </div>
265 {% endcapture %}
266 {% include example.html content=example %}
267
268 ## Text alignment
269
270 You can quickly change the text alignment of any card—in its entirety or specific parts—with our [text align classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/text/#text-alignment).
271
272 {% capture example %}
273 <div class="card" style="width: 18rem;">
274   <div class="card-body">
275     <h5 class="card-title">Special title treatment</h5>
276     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
277     <a href="#" class="btn btn-primary">Go somewhere</a>
278   </div>
279 </div>
280
281 <div class="card text-center" style="width: 18rem;">
282   <div class="card-body">
283     <h5 class="card-title">Special title treatment</h5>
284     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
285     <a href="#" class="btn btn-primary">Go somewhere</a>
286   </div>
287 </div>
288
289 <div class="card text-right" style="width: 18rem;">
290   <div class="card-body">
291     <h5 class="card-title">Special title treatment</h5>
292     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
293     <a href="#" class="btn btn-primary">Go somewhere</a>
294   </div>
295 </div>
296 {% endcapture %}
297 {% include example.html content=example %}
298
299 ## Navigation
300
301 Add some navigation to a card's header (or block) with Bootstrap's [nav components]({{ site.baseurl }}/docs/{{ site.docs_version }}/components/navs/).
302
303 {% capture example %}
304 <div class="card text-center">
305   <div class="card-header">
306     <ul class="nav nav-tabs card-header-tabs">
307       <li class="nav-item">
308         <a class="nav-link active" href="#">Active</a>
309       </li>
310       <li class="nav-item">
311         <a class="nav-link" href="#">Link</a>
312       </li>
313       <li class="nav-item">
314         <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
315       </li>
316     </ul>
317   </div>
318   <div class="card-body">
319     <h5 class="card-title">Special title treatment</h5>
320     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
321     <a href="#" class="btn btn-primary">Go somewhere</a>
322   </div>
323 </div>
324 {% endcapture %}
325 {% include example.html content=example %}
326
327 {% capture example %}
328 <div class="card text-center">
329   <div class="card-header">
330     <ul class="nav nav-pills card-header-pills">
331       <li class="nav-item">
332         <a class="nav-link active" href="#">Active</a>
333       </li>
334       <li class="nav-item">
335         <a class="nav-link" href="#">Link</a>
336       </li>
337       <li class="nav-item">
338         <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
339       </li>
340     </ul>
341   </div>
342   <div class="card-body">
343     <h5 class="card-title">Special title treatment</h5>
344     <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
345     <a href="#" class="btn btn-primary">Go somewhere</a>
346   </div>
347 </div>
348 {% endcapture %}
349 {% include example.html content=example %}
350
351 ## Images
352
353 Cards include a few options for working with images. Choose from appending "image caps" at either end of a card, overlaying images with card content, or simply embedding the image in a card.
354
355 ### Image caps
356
357 Similar to headers and footers, cards can include top and bottom "image caps"—images at the top or bottom of a card.
358
359 {% capture example %}
360 <div class="card mb-3">
361   {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
362   <div class="card-body">
363     <h5 class="card-title">Card title</h5>
364     <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
365     <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
366   </div>
367 </div>
368 <div class="card">
369   <div class="card-body">
370     <h5 class="card-title">Card title</h5>
371     <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
372     <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
373   </div>
374   {% include icons/placeholder.svg width="100%" height="180" class="card-img-bottom" text="Image cap" %}
375 </div>
376 {% endcapture %}
377 {% include example.html content=example %}
378
379 ### Image overlays
380
381 Turn an image into a card background and overlay your card's text. Depending on the image, you may or may not need additional styles or utilities.
382
383 {% capture example %}
384 <div class="card bg-dark text-white">
385   {% include icons/placeholder.svg width="100%" height="270" class="bd-placeholder-img-lg card-img" text="Card image" %}
386   <div class="card-img-overlay">
387     <h5 class="card-title">Card title</h5>
388     <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
389     <p class="card-text">Last updated 3 mins ago</p>
390   </div>
391 </div>
392 {% endcapture %}
393 {% include example.html content=example %}
394
395 {% capture callout %}
396 Note that content should not be larger than the height of the image. If content is larger than the image the content will be displayed outside the image.
397 {% endcapture %}
398 {% include callout.html content=callout type="info" %}
399
400 ## Card styles
401
402 Cards include various options for customizing their backgrounds, borders, and color.
403
404 ### Background and color
405
406 Use [text and background utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/colors/) to change the appearance of a card.
407
408 {% capture example %}
409 {% for color in site.data.theme-colors %}
410 <div class="card{% unless color.name == "light" %} text-white{% endunless %} bg-{{ color.name }} mb-3" style="max-width: 18rem;">
411   <div class="card-header">Header</div>
412   <div class="card-body">
413     <h5 class="card-title">{{ color.name | capitalize }} card title</h5>
414     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
415   </div>
416 </div>{% endfor %}
417 {% endcapture %}
418 {% include example.html content=example %}
419
420 {% include callout-warning-color-assistive-technologies.md %}
421
422 ### Border
423
424 Use [border utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/borders/) to change just the `border-color` of a card. Note that you can put `.text-{color}` classes on the parent `.card` or a subset of the card's contents as shown below.
425
426 {% capture example %}
427 {% for color in site.data.theme-colors %}
428 <div class="card border-{{ color.name }} mb-3" style="max-width: 18rem;">
429   <div class="card-header">Header</div>
430   <div class="card-body{% unless color.name == "light" %} text-{{ color.name }}{% endunless %}">
431     <h5 class="card-title">{{ color.name | capitalize }} card title</h5>
432     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
433   </div>
434 </div>{% endfor %}
435 {% endcapture %}
436 {% include example.html content=example %}
437
438 ### Mixins utilities
439
440 You can also change the borders on the card header and footer as needed, and even remove their `background-color` with `.bg-transparent`.
441
442 {% capture example %}
443 <div class="card border-success mb-3" style="max-width: 18rem;">
444   <div class="card-header bg-transparent border-success">Header</div>
445   <div class="card-body text-success">
446     <h5 class="card-title">Success card title</h5>
447     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
448   </div>
449   <div class="card-footer bg-transparent border-success">Footer</div>
450 </div>
451 {% endcapture %}
452 {% include example.html content=example %}
453
454 ## Card layout
455
456 In addition to styling the content within cards, Bootstrap includes a few options for laying out series of cards. For the time being, **these layout options are not yet responsive**.
457
458 ### Card groups
459
460 Use card groups to render cards as a single, attached element with equal width and height columns. Card groups use `display: flex;` to achieve their uniform sizing.
461
462 {% capture example %}
463 <div class="card-group">
464   <div class="card">
465     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
466     <div class="card-body">
467       <h5 class="card-title">Card title</h5>
468       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
469       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
470     </div>
471   </div>
472   <div class="card">
473     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
474     <div class="card-body">
475       <h5 class="card-title">Card title</h5>
476       <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
477       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
478     </div>
479   </div>
480   <div class="card">
481     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
482     <div class="card-body">
483       <h5 class="card-title">Card title</h5>
484       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
485       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
486     </div>
487   </div>
488 </div>
489 {% endcapture %}
490 {% include example.html content=example %}
491
492 When using card groups with footers, their content will automatically line up.
493
494 {% capture example %}
495 <div class="card-group">
496   <div class="card">
497     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
498     <div class="card-body">
499       <h5 class="card-title">Card title</h5>
500       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
501     </div>
502     <div class="card-footer">
503       <small class="text-muted">Last updated 3 mins ago</small>
504     </div>
505   </div>
506   <div class="card">
507     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
508     <div class="card-body">
509       <h5 class="card-title">Card title</h5>
510       <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
511     </div>
512     <div class="card-footer">
513       <small class="text-muted">Last updated 3 mins ago</small>
514     </div>
515   </div>
516   <div class="card">
517     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
518     <div class="card-body">
519       <h5 class="card-title">Card title</h5>
520       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
521     </div>
522     <div class="card-footer">
523       <small class="text-muted">Last updated 3 mins ago</small>
524     </div>
525   </div>
526 </div>
527 {% endcapture %}
528 {% include example.html content=example %}
529
530 ### Card decks
531
532 Need a set of equal width and height cards that aren't attached to one another? Use card decks.
533
534 {% capture example %}
535 <div class="card-deck">
536   <div class="card">
537     {% include icons/placeholder.svg width="100%" height="200" class="card-img-top" text="Image cap" %}
538     <div class="card-body">
539       <h5 class="card-title">Card title</h5>
540       <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
541       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
542     </div>
543   </div>
544   <div class="card">
545     {% include icons/placeholder.svg width="100%" height="200" class="card-img-top" text="Image cap" %}
546     <div class="card-body">
547       <h5 class="card-title">Card title</h5>
548       <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
549       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
550     </div>
551   </div>
552   <div class="card">
553     {% include icons/placeholder.svg width="100%" height="200" class="card-img-top" text="Image cap" %}
554     <div class="card-body">
555       <h5 class="card-title">Card title</h5>
556       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
557       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
558     </div>
559   </div>
560 </div>
561 {% endcapture %}
562 {% include example.html content=example %}
563
564 Just like with card groups, card footers in decks will automatically line up.
565
566 {% capture example %}
567 <div class="card-deck">
568   <div class="card">
569     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
570     <div class="card-body">
571       <h5 class="card-title">Card title</h5>
572       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
573     </div>
574     <div class="card-footer">
575       <small class="text-muted">Last updated 3 mins ago</small>
576     </div>
577   </div>
578   <div class="card">
579     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
580     <div class="card-body">
581       <h5 class="card-title">Card title</h5>
582       <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
583     </div>
584     <div class="card-footer">
585       <small class="text-muted">Last updated 3 mins ago</small>
586     </div>
587   </div>
588   <div class="card">
589     {% include icons/placeholder.svg width="100%" height="180" class="card-img-top" text="Image cap" %}
590     <div class="card-body">
591       <h5 class="card-title">Card title</h5>
592       <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
593     </div>
594     <div class="card-footer">
595       <small class="text-muted">Last updated 3 mins ago</small>
596     </div>
597   </div>
598 </div>
599 {% endcapture %}
600 {% include example.html content=example %}
601
602 ### Card columns
603
604 Cards can be organized into [Masonry](https://masonry.desandro.com/)-like columns with just CSS by wrapping them in `.card-columns`. Cards are built with CSS `column` properties instead of flexbox for easier alignment. Cards are ordered from top to bottom and left to right.
605
606 **Heads up!** Your mileage with card columns may vary. To prevent cards breaking across columns, we must set them to `display: inline-block` as `column-break-inside: avoid` isn't a bulletproof solution yet.
607
608 {% capture example %}
609 <div class="card-columns">
610   <div class="card">
611     {% include icons/placeholder.svg width="100%" height="160" class="card-img-top" text="Image cap" %}
612     <div class="card-body">
613       <h5 class="card-title">Card title that wraps to a new line</h5>
614       <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
615     </div>
616   </div>
617   <div class="card p-3">
618     <blockquote class="blockquote mb-0 card-body">
619       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
620       <footer class="blockquote-footer">
621         <small class="text-muted">
622           Someone famous in <cite title="Source Title">Source Title</cite>
623         </small>
624       </footer>
625     </blockquote>
626   </div>
627   <div class="card">
628     {% include icons/placeholder.svg width="100%" height="160" class="card-img-top" text="Image cap" %}
629     <div class="card-body">
630       <h5 class="card-title">Card title</h5>
631       <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
632       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
633     </div>
634   </div>
635   <div class="card bg-primary text-white text-center p-3">
636     <blockquote class="blockquote mb-0">
637       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.</p>
638       <footer class="blockquote-footer text-white">
639         <small>
640           Someone famous in <cite title="Source Title">Source Title</cite>
641         </small>
642       </footer>
643     </blockquote>
644   </div>
645   <div class="card text-center">
646     <div class="card-body">
647       <h5 class="card-title">Card title</h5>
648       <p class="card-text">This card has a regular title and short paragraphy of text below it.</p>
649       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
650     </div>
651   </div>
652   <div class="card">
653     {% include icons/placeholder.svg width="100%" height="260" class="card-img" text="Card image" %}
654   </div>
655   <div class="card p-3 text-right">
656     <blockquote class="blockquote mb-0">
657       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
658       <footer class="blockquote-footer">
659         <small class="text-muted">
660           Someone famous in <cite title="Source Title">Source Title</cite>
661         </small>
662       </footer>
663     </blockquote>
664   </div>
665   <div class="card">
666     <div class="card-body">
667       <h5 class="card-title">Card title</h5>
668       <p class="card-text">This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.</p>
669       <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
670     </div>
671   </div>
672 </div>
673 {% endcapture %}
674 {% include example.html content=example %}
675
676 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.
677
678 {% highlight scss %}
679 .card-columns {
680   @include media-breakpoint-only(lg) {
681     column-count: 4;
682   }
683   @include media-breakpoint-only(xl) {
684     column-count: 5;
685   }
686 }
687 {% endhighlight %}