Card Block
The building block of a card is the .card-body
. Use it whenever you need a padded section within a card.
This is some text within a card body.
Card Titles, text, and links
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.
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 linkCard with List groups
Create lists of content in a card with a flush list group.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, cupiditate.
- List group item
- List group item
- List group item (disabled)
Card with Accordion
Create accordion in a card with a flush accordion.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, cupiditate.
Card Header
Add an optional header within a card.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Card Footer
Add an optional footer within a card.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Card with Tabs Navigation
Add some navigation to a card’s header (or block) with Bootstrap’s nav components.
Card with Toolbar
Add some useful and functional tools.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Card Image Top
.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.
Some quick example text to build on the card title and make up the bulk of the card's content.
Card Image Bottom
.card-img-bottom
places an image to the bottom 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.
Some quick example text to build on the card title and make up the bulk of the card's content.
Card Image Overlays
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.
Card Groups
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.
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.
Card title
This card has supporting text below as a natural lead-in to additional content.
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.
Card Decks
Need a set of equal width and height cards that aren’t attached to one another? Use card decks.
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.
Card title
This card has supporting text below as a natural lead-in to additional content.
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.
Card Columns
Cards can be organized into Masonry-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.
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.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Card title
This card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins ago
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.
Card title
This card has a regular title and short paragraphy of text below it.
Last updated 3 mins ago
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Card title
This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.
Last updated 3 mins ago