Card group – Card group with cards that aren't attached to one another.
From Bootstrap - Demo Wiki
Component | ||
---|---|---|
Name | Card group | |
Description | Card group with cards that aren't attached to one another. | |
Provider | Skin | |
Note | Cards in card decks can also have a footer. | |
Reference | getbootstrap.com - card decks | |
Styling | For all possible color styles and corresponding examples, see colors. |
Result
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.
Last updated 3 mins ago
Card title
This card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins ago
Card title
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.
Last updated 3 mins ago
Code
<div class="card-deck">
<div class="card">
[[File:DSC02201_363.jpg|class=card-img-top]]
<div class="card-body">
<h5 class="card-title">Card title</h5>
<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>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
[[File:DSC02180_363.jpg|class=card-img-top]]
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
[[File:DSC02166_363.jpg|class=card-img-top]]
<div class="card-body">
<h5 class="card-title">Card title</h5>
<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>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
If you add more than three cards you will need to hide the table of contents automatically generated by MediaWiki by also adding the behaviour switch
__NOTOC__
to the page.