Cards
Card with Image
For the code click on above code icon
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<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>
<a href="#" class="btn btn-primary">Custom Link</a>
</div>
</div>
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Custom Link
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Custom Link
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Custom Link
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Custom LinkHeader and footer
Add an optional header and/or footer within a card. HTML
<div class="card">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h4 class="card-title">Special title</h4>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Custom Link</a>
</div>
</div>
Card styles
Cards include various options for customizing their backgrounds, borders, and color..card-primary info, warning, danger
Card Title
Card Title
Card Title
Card Title
Card Title
Card Title
Header and footer
Add an optional header and/or footer within a card. HTML
<div class="card text-center">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h4 class="card-title">Special title</h4>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Custom Link</a>
</div>
<div class="card-footer text-muted">
2 days ago
</div>
</div>
Content types
The building block of a card is the .card .card-body Use it whenever you need a padded section within a card.
Special title
With supporting text below as a natural lead-in to additional content.
Titles, text, and links
Card titles are used by adding .card-title & .card-subtitle for subtitle of card.
Card title
Card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Card link Another linkSize Using grid markup
Using the grid, wrap cards in columns and rows as needed..col-1 to .col-12
Size Using grid markup
Using the grid, wrap cards in columns and rows as needed..col-1 to .col-12
Text alignment
You can quickly change the text alignment.text-center .text-right.
Using utilities
Using the utility, you can give direct width class to card like.w-25, .w-50, .w-75, .w-100
This card has width of 75%
With supporting text below as a natural lead-in to additional content.
Custom LinkThis card has width of 50%
With supporting text below as a natural lead-in to additional content.
Custom LinkCard styles
Cards include various options for customizing their backgrounds, borders, and color..card-primary info, warning, danger
Card Title
Card Title
Card Title
Card Title
Card Title
Card Title
Card Groups
Use card groups to render cards as a single, attached element with equal width and height columns.
Card title
This is a wider 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
Card with Deck
Use card groups to render cards as a single, attached element with equal width and height columns.
Card title
This is a wider 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.
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. supporting text below as a natural lead-in to additional content
Last updated 3 mins ago
Card columns
Cards can be organized into Masonry-like columns with just CSS by wrapping them in card-columns
Card title that wraps to a new line
This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Card title
This card has supporting text below as a natural lead-in to additional content.
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