Cards

Bootstrap's cards provide a flexible and extensible content container with multiple variants and options.

On this page

About

A card is a flexible and extensible content container.

It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.

If you're familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails.

Similar functionality to those components is available as modifier classes for cards.

Example

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.

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.

This is easily customized with our various sizing options.

...
Card title

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

Go somewhere
vue
<template>
  <Card>
    <CardImgTop
      src="/unsplash/image/coffee/tyler-nix-WZLBfkRg-KM-unsplash.jpg"
      alt="..."
    />
    <CardBody>
      <CardTitle>Card title</CardTitle>
      <CardText>
        Some quick example text to build on the card title and make up the bulk
        of the card's content.
      </CardText>
      <b-a
        href="#"
        button="primary"
      >
        Go somewhere
      </b-a>
    </CardBody>
  </Card>
</template>

Content types

Cards support a wide variety of content, including images, text, list groups, links, and more. Below are examples of what's supported.

Body

The building block of a card is the CardBody. Use it whenever you need a padded section within a card.

This is some text within a card body.
vue
<template>
  <Card>
    <CardBody>This is some text within a card body.</CardBody>
  </Card>
</template>

Titles, text, and links

Card titles are used by adding CardTitle component.

In the same way, links are added and placed next to each other by adding `CardLink` tag.

Subtitles are used by adding a CardSubTitle component.

If the CardTitle and the CardSubTitle items are placed in a CardBody item, the card title and subtitle are aligned nicely.

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 linkAnother link
vue
<template>
  <Card style="width: 18rem">
    <CardBody>
      <CardTitle>Card title</CardTitle>
      <CardSubTitle
        margin="b-2"
        text-color="muted"
      >
        Card subtitle
      </CardSubTitle>
      <CardText>
        Some quick example text to build on the card title and make up the bulk
        of the card's content.
      </CardText>
      <CardLink>Card link</CardLink>
      <CardLink>Another link</CardLink>
    </CardBody>
  </Card>
</template>

Images

CardImgTop component places an image to the top of the card.

With CardTextcomponent, text can be added to the card. Text within CardText component 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.

vue
<template>
  <Card>
    <CardImgTop
      src="/unsplash/image/coffee/nathan-dumlao-6VhPY27jdps-unsplash.jpg"
      alt="..."
    />
    <CardBody>
      <CardText>
        Some quick example text to build on the card title and make up the bulk
        of the card's content.
      </CardText>
    </CardBody>
  </Card>
</template>

List groups

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

  • An item
  • A second item
  • A third item
  • vue
    <template>
      <Card style="width: 18rem">
        <ListGroup flush>
          <ListGroupItem>An item</ListGroupItem>
          <ListGroupItem>A second item</ListGroupItem>
          <ListGroupItem>A third item</ListGroupItem>
        </ListGroup>
      </Card>
    </template>
    
    Featured
  • An item
  • A second item
  • A third item
  • vue
    <template>
      <Card style="width: 18rem">
        <CardHeader>Featured</CardHeader>
        <ListGroup flush>
          <ListGroupItem>An item</ListGroupItem>
          <ListGroupItem>A second item</ListGroupItem>
          <ListGroupItem>A third item</ListGroupItem>
        </ListGroup>
      </Card>
    </template>
    
  • An item
  • A second item
  • A third item
  • vue
    <template>
      <Card style="width: 18rem">
        <ListGroup flush>
          <ListGroupItem>An item</ListGroupItem>
          <ListGroupItem>A second item</ListGroupItem>
          <ListGroupItem>A third item</ListGroupItem>
        </ListGroup>
        <CardFooter>Featured</CardFooter>
      </Card>
    </template>
    

    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.

    Go somewhere
  • An item
  • A second item
  • A third item
  • vue
    <template>
      <Card>
        <CardImgTop
          src="/unsplash/image/coffee/nathan-dumlao-6VhPY27jdps-unsplash.jpg"
          alt="..."
        />
        <CardBody>
          <CardTitle>Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
        <ListGroup flush>
          <ListGroupItem>An item</ListGroupItem>
          <ListGroupItem>A second item</ListGroupItem>
          <ListGroupItem>A third item</ListGroupItem>
        </ListGroup>
        <CardBody>
          <CardLink>Card link</CardLink>
          <CardLink>Another link</CardLink>
        </CardBody>
      </Card>
    </template>
    

    Header and footer

    Add an optional header and/or footer within a card.

    Featured
    Special title treatment

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

    Go somewhere
    vue
    <template>
      <Card>
        <CardHeader>Featured</CardHeader>
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            With supporting text below as a natural lead-in to additional content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    </template>
    

    Card headers can be styled by adding CardHeader elements.

    Featured
    Special title treatment

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

    Go somewhere
    vue
    <template>
      <Card>
        <CardHeader>Featured</CardHeader>
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    </template>
    
    Quote

    A well-known quote, contained in a blockquote element.

    Someone famous in Source Title
    vue
    <template>
      <Card>
        <CardHeader>Quote</CardHeader>
        <CardBody>
          <BBlockquote margin="b-0">
            <b-p>A well-known quote, contained in a blockquote element.</b-p>
            <BBlockquoteFooter tag="footer">
              Someone famous in
              <cite title="Source Title">Source Title</cite>
            </BBlockquoteFooter>
          </BBlockquote>
        </CardBody>
      </Card>
    </template>
    
    Featured
    Special title treatment

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

    Go somewhere
    vue
    <template>
      <Card text-alignment="center">
        <CardHeader>Featured</CardHeader>
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
        <CardFooter text-color="muted">
          2 days ago
        </CardFooter>
      </Card>
    </template>
    

    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, grid classes, grid Sass mixins, or utilities.

    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
    vue
    <template>
      <Row>
        <Col col="sm-6">
          <Card>
            <CardBody>
              <CardTitle>Special title treatment</CardTitle>
              <CardText>
                With supporting text below as a natural lead-in to additional
                content.
              </CardText>
              <b-a
                href="#"
                button="primary"
              >
                Go somewhere
              </b-a>
            </CardBody>
          </Card>
        </Col>
        <Col col="sm-6">
          <Card>
            <CardBody>
              <CardTitle>Special title treatment</CardTitle>
              <CardText>
                With supporting text below as a natural lead-in to additional
                content.
              </CardText>
              <b-a
                href="#"
                button="primary"
              >
                Go somewhere
              </b-a>
            </CardBody>
          </Card>
        </Col>
      </Row>
    </template>
    

    Using utilities

    Use relative-width attribute to quickly set a card's width.

    Card title

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

    Go somewhere
    Card title

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

    Go somewhere
    vue
    <template>
      <Card relative-width="75">
        <CardBody>
          <CardTitle>Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    
      <Card relative-width="50">
        <CardBody>
          <CardTitle>Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    </template>
    

    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
    vue
    <template>
      <Row>
        <Col col="6">
          <Card style="width: 18rem">
            <CardBody>
              <CardTitle>Special title treatment</CardTitle>
              <CardText>
                With supporting text below as a natural lead-in to additional
                content.
              </CardText>
              <b-a
                href="#"
                button="primary"
              >
                Go somewhere
              </b-a>
            </CardBody>
          </Card>
        </Col>
      </Row>
    </template>
    

    Text alignment

    You can quickly change the text alignment of any card—in its entirety or specific parts—with our text align classes,docsref "/utilities/text#text-alignment".

    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
    vue
    <template>
      <Card style="width: 18rem">
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            With supporting text below as a natural lead-in to additional content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
      <Card
        text-alignment="center"
        style="width: 18rem"
      >
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            With supporting text below as a natural lead-in to additional content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
      <Card
        text-alignment="end"
        style="width: 18rem"
      >
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            With supporting text below as a natural lead-in to additional content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    </template>
    

    Navigation

    Add some navigation to a card's header (or block) with Bootstrap's Nav component, docsref "/components/navs-tabs".

    Special title treatment

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

    Go somewhere
    vue
    <template>
      <Card text-alignment="center">
        <CardHeader>
          <Nav card="header-tabs">
            <NavItem>
              <NavLink
                active
                href="#"
              >
                Active
              </NavLink>
            </NavItem>
            <NavItem>
              <NavLink href="#">
                Link
              </NavLink>
            </NavItem>
            <NavItem>
              <NavLink
                disabled
                href="#"
              >
                Disabled
              </NavLink>
            </NavItem>
          </Nav>
        </CardHeader>
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            With supporting text below as a natural lead-in to additional content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    </template>
    
    Special title treatment

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

    Go somewhere
    vue
    <template>
      <Card text-alignment="center">
        <CardHeader>
          <Nav card="header-tabs">
            <NavItem>
              <NavLink
                active
                href="#"
              >
                Active
              </NavLink>
            </NavItem>
            <NavItem>
              <NavLink href="#">
                Link
              </NavLink>
            </NavItem>
            <NavItem>
              <NavLink
                disabled
                href="#"
              >
                Disabled
              </NavLink>
            </NavItem>
          </Nav>
        </CardHeader>
        <CardBody>
          <CardTitle>Special title treatment</CardTitle>
          <CardText>
            With supporting text below as a natural lead-in to additional content.
          </CardText>
          <b-a
            href="#"
            button="primary"
          >
            Go somewhere
          </b-a>
        </CardBody>
      </Card>
    </template>
    

    Images

    Cards include a few options for working with images. Choose from appending "image caps" at either end of a card, overlaying images with card content, or simply embedding the image in a card.

    Image caps

    Similar to headers and footers, cards can include top and bottom "image caps"—images at the top or bottom of a card.

    ...
    Card title

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

    Last updated 3 mins ago

    Card title

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

    Last updated 3 mins ago

    ...
    vue
    <template>
      <Card margin="b-3">
        <CardImgTop
          src="/unsplash/image/coffee/tyler-nix-WZLBfkRg-KM-unsplash.jpg"
          alt="..."
        />
        <CardBody>
          <CardTitle>Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <CardText
            text-color="muted"
            small
          >
            Last updated 3 mins ago
          </CardText>
        </CardBody>
      </Card>
      <Card>
        <CardBody>
          <CardTitle>Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <CardText
            text-color="muted"
            small
          >
            Last updated 3 mins ago
          </CardText>
        </CardBody>
        <CardImgBottom
          src="/unsplash/image/coffee/nathan-dumlao-6VhPY27jdps-unsplash.jpg"
          alt="..."
        />
      </Card>
    </template>
    

    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 title

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

    Last updated 3 mins ago

    vue
    <template>
      <Card
        text-color="white"
        background-color="dark"
      >
        <CardImg
          src="/unsplash/image/cafe/janosch-lino-k6w8miMpfUI-unsplash.jpg"
          alt="..."
        />
        <CardImgOverlay>
          <CardTitle>Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
          <CardText
            text-color="muted"
            small
          >
            Last updated 3 mins ago
          </CardText>
        </CardImgOverlay>
      </Card>
    </template>
    
    tip

    Note that content should not be larger than the height of the image.

    If content is larger than the image the content will be displayed outside the image.

    Horizontal

    Using a combination of grid and utility classes, cards can be made horizontal in a mobile-friendly and responsive way. In the example below, we remove the grid gutters with gutter="0" attributes and use col="md-*" attributes to make the card horizontal at the md breakpoint. Further adjustments may be needed depending on your card content.

    ...
    Card title

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

    Last updated 3 mins ago

    vue
    <template>
      <Card margin="b-3">
        <Row gutter="0">
          <Col col="md-4">
            <b-img
              fluid
              rounded="start"
              src="/unsplash/image/coffee/tyler-nix-WZLBfkRg-KM-unsplash.jpg"
              alt="..."
            />
          </Col>
          <Col col="md-8">
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                Some quick example text to build on the card title and make up the
                bulk of the card's content.
              </CardText>
              <CardText
                text-color="muted"
                small
              >
                Last updated 3 mins ago
              </CardText>
            </CardBody>
          </Col>
        </Row>
      </Card>
    </template>
    

    Card styles

    Cards include various options for customizing their backgrounds, borders, and color.

    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.

    vue
    <template>
      <Card
        text-color="white"
        background-color="primary"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Primary Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="white"
        background-color="secondary"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Secondary Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="white"
        background-color="success"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Success Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="white"
        background-color="danger"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Danger Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="dark"
        background-color="warning"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Warning Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="dark"
        background-color="info"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Info Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="dark"
        background-color="light"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Light Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
      <Card
        text-color="white"
        background-color="dark"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader>Header</CardHeader>
        <CardBody>
          <CardTitle>Dark Card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
      </Card>
    </template>
    

    Border

    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.

    vue
    <template>
      <b-div padding="3">
        <Card
          border-color="primary"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="primary">
            <CardTitle>Primary Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="secondary"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="secondary">
            <CardTitle>Secondary Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="success"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="success">
            <CardTitle>Success Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="danger"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="danger">
            <CardTitle>Danger Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="warning"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="warning">
            <CardTitle>Warning Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="info"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="info">
            <CardTitle>Info Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="light"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody>
            <CardTitle>Light Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
        <Card
          border-color="dark"
          margin="b-3"
          style="max-width: 18rem"
        >
          <CardHeader>Header</CardHeader>
          <CardBody text-color="dark">
            <CardTitle>Dark Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
        </Card>
      </b-div>
    </template>
    

    Mixins utilities

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

    Header
    Success card title

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

    vue
    <template>
      <Card
        border-color="success"
        margin="b-3"
        style="max-width: 18rem"
      >
        <CardHeader
          background-color="transparent"
          border-color="success"
        >
          Header
        </CardHeader>
        <CardBody text-color="success">
          <CardTitle>Success card title</CardTitle>
          <CardText>
            Some quick example text to build on the card title and make up the bulk
            of the card's content.
          </CardText>
        </CardBody>
        <CardFooter
          background-color="transparent"
          border-color="success"
        >
          Footer
        </CardFooter>
      </Card>
    </template>
    

    Card layout

    In addition to styling the content within cards, Bootstrap includes a few options for laying out series of cards. For the time being, these layout options are not yet responsive

    Card groups

    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.

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

    vue
    <template>
      <CardGroup>
        <Card>
          <CardImgTop
            src="/unsplash/image/cafe/claudio-poggio-xCK8kr0R0JE-unsplash.jpg"
            alt="..."
          />
          <CardBody>
            <CardTitle>Card title</CardTitle>
            <CardText>
              This is a wider card with supporting text below as a natural lead-in
              to additional content. This content is a little bit longer.
            </CardText>
            <CardText text-color="muted">
              Last updated 3 mins ago
            </CardText>
          </CardBody>
        </Card>
        <Card>
          <CardImgTop
            src="/unsplash/image/cafe/janosch-lino-k6w8miMpfUI-unsplash.jpg"
            alt="..."
          />
          <CardBody>
            <CardTitle>Card title</CardTitle>
            <CardText>
              This card has supporting text below as a natural lead-in to additional
              content.
            </CardText>
            <CardText text-color="muted">
              Last updated 3 mins ago
            </CardText>
          </CardBody>
        </Card>
        <Card>
          <CardImgTop
            src="/unsplash/image/cafe/roman-bozhko-OXXsAafHDeo-unsplash.jpg"
            alt="..."
          />
          <CardBody>
            <CardTitle>Card title</CardTitle>
            <CardText>
              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.
            </CardText>
            <CardText text-color="muted">
              Last updated 3 mins ago
            </CardText>
          </CardBody>
        </Card>
      </CardGroup>
    </template>
    

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

    ...
    Card title

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

    ...
    Card title

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

    ...
    Card title

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

    vue
    <template>
      <CardGroup>
        <Card>
          <CardImgTop
            src="/unsplash/image/cafe/claudio-poggio-xCK8kr0R0JE-unsplash.jpg"
            alt="..."
          />
          <CardBody>
            <CardTitle>Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
          <CardFooter>
            <b-p text-color="muted">
              Last updated 3 mins ago
            </b-p>
          </CardFooter>
        </Card>
        <Card>
          <CardImgTop
            src="/unsplash/image/cafe/janosch-lino-k6w8miMpfUI-unsplash.jpg"
            alt="..."
          />
          <CardBody>
            <CardTitle>Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
          <CardFooter>
            <b-p text-color="muted">
              Last updated 3 mins ago
            </b-p>
          </CardFooter>
        </Card>
        <Card>
          <CardImgTop
            src="/unsplash/image/cafe/roman-bozhko-OXXsAafHDeo-unsplash.jpg"
            alt="..."
          />
          <CardBody>
            <CardTitle>Card title</CardTitle>
            <CardText>
              Some quick example text to build on the card title and make up the
              bulk of the card's content.
            </CardText>
          </CardBody>
          <CardFooter>
            <b-p text-color="muted">
              Last updated 3 mins ago
            </b-p>
          </CardFooter>
        </Card>
      </CardGroup>
    </template>
    

    Grid cards

    Use the Bootstrap grid system and its Row components with columns to control how many grid columns (wrapped around your cards) you show per row. For example, here's columns="1 md-2" laying out the cards on one column, and columns="md-2" splitting four cards to equal width across multiple rows, from the medium breakpoint up.

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

    vue
    <template>
      <Row
        columns="1 md-2"
        :gutter="4"
      >
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/claudio-poggio-xCK8kr0R0JE-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/janosch-lino-k6w8miMpfUI-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/roman-bozhko-OXXsAafHDeo-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content.
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/daan-evers-tKN1WXrzQ3s-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
            </CardBody>
          </Card>
        </Col>
      </Row>
    </template>
    

    Change it to columns="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.

    vue
    <template>
      <Row
        columns="1 md-3"
        :gutter="4"
      >
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/claudio-poggio-xCK8kr0R0JE-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/janosch-lino-k6w8miMpfUI-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/roman-bozhko-OXXsAafHDeo-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content.
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card>
            <CardImgTop
              src="/unsplash/image/cafe/daan-evers-tKN1WXrzQ3s-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
            </CardBody>
          </Card>
        </Col>
      </Row>
    </template>
    

    When you need equal height, add height="100" attributes to the cards. If you want equal heights by default, you can set $card-height: 100% in Sass.

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

    Last updated 3 mins ago

    ...
    Card title

    This is a short card.

    Last updated 3 mins ago

    ...
    Card title

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

    Last updated 3 mins ago

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

    Last updated 3 mins ago

    vue
    <template>
      <Row
        columns="1 md-3"
        :gutter="4"
      >
        <Col>
          <Card :height="100">
            <CardImgTop
              src="/unsplash/image/cafe/claudio-poggio-xCK8kr0R0JE-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
              <CardText text-color="muted">
                Last updated 3 mins ago
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card :height="100">
            <CardImgTop
              src="/unsplash/image/cafe/janosch-lino-k6w8miMpfUI-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>This is a short card.</CardText>
              <CardText text-color="muted">
                Last updated 3 mins ago
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card :height="100">
            <CardImgTop
              src="/unsplash/image/cafe/roman-bozhko-OXXsAafHDeo-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content.
              </CardText>
              <CardText text-color="muted">
                Last updated 3 mins ago
              </CardText>
            </CardBody>
          </Card>
        </Col>
        <Col>
          <Card :height="100">
            <CardImgTop
              src="/unsplash/image/cafe/daan-evers-tKN1WXrzQ3s-unsplash.jpg"
              alt="..."
            />
            <CardBody>
              <CardTitle>Card title</CardTitle>
              <CardText>
                This is a longer card with supporting text below as a natural
                lead-in to additional content. This content is a little bit longer.
              </CardText>
              <CardText text-color="muted">
                Last updated 3 mins ago
              </CardText>
            </CardBody>
          </Card>
        </Col>
      </Row>
    </template>