Bootstrap Home

Cards

Basic Card

Basic card

Card Header And Footer

Header
Content

Cards With Contextual Classes

Background And Color

Use text color and background utilities to change the appearance of a card.


Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.


Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Border

Use border utilities to change just the border-color of a card. Note that you can put .text-{color} classes on the parent .card or a subset of the card’s contents as shown below.


Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Mixins Utilities

You can also change the borders on the card header and footer as needed, and even remove their background-color with .bg-transparent.


Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Card Titles, Text, And Links

Use .card-title to add card titles to any heading element. The .card-text class is used to remove bottom margins for a <p> element if it is the last child (or the only one) in card-body. The .card-link class adds a blue color to any link, and a hover effect.


Card title

Card subtitle

Some example text. Some example text.

Card link Another link

List Groups

Create lists of content in a card with a flush list group.



With Header


Featured

With Footer


Card Image

Image at the top (card-img-top).


Card image

John Doe

Some example text some example text. John Doe is an architect and engineer

See Profile

Image at the bottom (card-img-bottom).


Jane Doe

Some example text some example text. Jane Doe is an architect and engineer

See Profile
Card image

Card Image Overlay

Turn an image into a card background and use .card-img-overlay to overlay the card's text.


Card image

John Doe

Some example text some example text. Some example text some example text. Some example text some example text. Some example text some example text.

See Profile

Horizontal

Using a combination of grid and utility classes, cards can be made horizontal in a mobile-friendly and responsive way.


...
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

Kitchen Sink

Mix and match multiple content types to create 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.


...
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

  • An item
  • A second item
  • A third item

Sizing

Cards assume no specific width to start, so they’ll be 100% wide unless otherwise stated. You can change this as needed with custom CSS and grid classes.


Using Grid Markup

Using the grid, wrap cards in columns and rows as needed.


Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Using Utilities

Use sizing utilities to quickly set a card’s width.


Card Title

With supporting text below as a natural lead-in to additional content.

Button
Card Title

With supporting text below as a natural lead-in to additional content.

Button

Using Custom CSS

Use custom CSS in your stylesheets or as inline styles to set a width.


Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Text Alignment

You can quickly change the text alignment of any card—in its entirety or specific parts—with text align classes.


Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Navigation

Add some navigation to a card’s header (or block) with Bootstrap’s nav components.


Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special Title Treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Card Layout

In addition to styling the content within cards, Bootstrap includes a few options for laying out series of cards.


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

When using card groups with footers, their content will automatically line up.


...
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.

Grid Cards

Use the Bootstrap grid system and its .row-cols classes to control how many grid columns (wrapped around your cards) you show per row.


...
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.

...
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.

...
Card title

This is a longer card with supporting text below as a natural lead-in to additional content.

...
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.

Change it to .row-cols-3 and you’ll see the fourth card wrap.


...
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.

...
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.

...
Card title

This is a longer card with supporting text below as a natural lead-in to additional content.

...
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.

When you need equal height, add .h-100 to the cards.


...
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.

...
Card title

This is a short card.

...
Card title

This is a longer card with supporting text below as a natural lead-in to additional content.

...
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.

Just like with card groups, card footers will automatically line up.


...
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.