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 as needed. Although cards are a lightweight solution for 'widget' or 'panel', we recommend you check out SmartAdmin's panels page for further flexible and an alternative option.
While we displayed some examples of cards here, you can learn more details of its usage at the official bootstrap documentation.
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewherecard-header
padding using provided utility classes
Lorem 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 somewhere.card-header
, .card-body
, and .card-footer
background cam be changed using color and border utilities
.card
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
.card-header
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
display: flex;
to achieve their uniform sizing.
This card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins agoThis card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins agoThis card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins agoThis is a wider card with supporting text below as a natural lead-in to additional content.
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.
.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.
display: inline-block
as column-break-inside: avoid
isn’t a bulletproof solution yet.
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.
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.
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.
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