Cards are built with as little markup and styles as possible but still manage to deliver a bunch of control and customization. Built with flexbox, they offer easy alignment and mix well with other CoreUI components. Cards have no top, left, and right margins by default, so use spacing utilities as needed. They have no fixed width to start, so they'll fill the full width of its parent.
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.
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereThe main block of a card is the <CCardBody>
. Use it whenever you need a padded section within a card.
Card titles are managed by <CCardTitle>
component. Identically, links are attached and collected next to each other by <CCardLink>
component.
Subtitles are managed by <CCardSubtitle>
component. If the <CCardTitle>
also, the <CCardSubtitle>
items are stored in a <CCardBody>
item, the card title, and subtitle are arranged rightly.
Some quick example text to build on the card title and make up the bulk of the card's content.
Card linkAnother link.card-img-top
places a picture to the top of the card. With .card-text
, text can be added to the card. Text within .card-text
can additionally be styled with the regular HTML tags.
Some quick example text to build on the card title and make up the bulk of the card's content.
Create lists of content in a card with a flush list group.
Combine and match many content types to build 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.
Some quick example text to build on the card title and make up the bulk of the card's content.
Add an optional header and/or footer within a card.
With supporting text below as a natural lead-in to additional content.
Go somewhereCard headers can be styled by adding ex. component="h5"
.
With supporting text below as a natural lead-in to additional content.
Go somewhereLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
With supporting text below as a natural lead-in to additional content.
Go somewhereCards assume no specific width
to start, so they'll be 100% wide unless otherwise stated. You can adjust this as required with custom CSS, grid classes, grid Sass mixins, or services.
Using the grid, wrap cards in columns and rows as needed.
With supporting text below as a natural lead-in to additional content.
Go somewhereWith supporting text below as a natural lead-in to additional content.
Go somewhereUse some of available sizing utilities to rapidly set a card's width.
Use custom CSS in your stylesheets or as inline styles to set a width.
With supporting text below as a natural lead-in to additional content.
Go somewhereYou can instantly change the text arrangement of any card—in its whole or specific parts—with text align classes.
With supporting text below as a natural lead-in to additional content.
Go somewhereWith supporting text below as a natural lead-in to additional content.
Go somewhereWith supporting text below as a natural lead-in to additional content.
Go somewhereAdd some navigation to a <CCardHeader>
with our <CNav>
component.
With supporting text below as a natural lead-in to additional content.
Go somewhereWith supporting text below as a natural lead-in to additional content.
Go somewhereSimilar to headers and footers, cards can include top and bottom "image caps"—images at the top or bottom of a card.
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
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
Cards include various options for customizing their backgrounds, borders, and color.
Use color
property to change the appearance of a card.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Use border utilities to change just the border-color
of a card. Note that you can set textColor
property on the <CCard>
or a subset of the card's contents as shown below.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Use border utilities to change just the border-color
of a card. Note that you can set textColor
property on the <CCard>
or a subset of the card's contents as shown below.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Use card groups to render cards as a single, attached element with equal width and height columns. Card groups start off stacked and use display: flex;
to become attached with uniform dimensions starting at the sm
breakpoint.
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
This card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins ago
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
When using card groups with footers, their content will automatically line up.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This card has supporting text below as a natural lead-in to additional content.
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.
Use the CRow
component and set {xs|sm|md|lg|xl|xxl}={{ cols: * }}
property to control how many grid columns (wrapped around your cards) you show per row. For example, here's xs={{cols: 1}}
laying out the cards on one column, and md={{cols: 1}}
splitting four cards to equal width across multiple rows, from the medium breakpoint up.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Change it to md={{ cols: 3}}
and you'll see the fourth card wrap.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.