Components
Card
A flexible content container with header, footer, images, list groups and the brand's bracket frame.
About
Cards are pure CSS and unchanged in behaviour. The theme sets a 6 px radius, a translucent navy border and a
faint navy cap background. For tournament and card-data layouts, the .frame-bracket helper
squares the corners to 2 px. Cards have no fixed width; place them in the grid
or size them with sizing utilities.
Images in these examples are inline SVG placeholders so the page carries no external assets. Swap in an
<img> with the same class.
Example
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereHTML
<div class="card" style="width: 18rem;">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Content types
Body
.card-body is the padded section. Use it alone when all you need is a padded box.
HTML
<div class="card">
<div class="card-body">This is some text within a card body.</div>
</div>Titles, text, and links
.card-title on a heading, .card-subtitle under it, .card-text on
paragraphs (removes the last bottom margin) and .card-link on anchors (adds spacing between
them).
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 linkHTML
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-body-secondary">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#!" class="card-link">Card link</a>
<a href="#!" class="card-link">Another link</a>
</div>
</div>Images
.card-img-top rounds the top corners to match the card. Put it before the body.
Some quick example text to build on the card title and make up the bulk of the card's content.
HTML
<div class="card" style="width: 18rem;">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>List groups
A list group with .list-group-flush sits edge to edge.
- An item
- A second item
- A third item
HTML
<div class="card" style="width: 18rem;">
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
</div>- An item
- A second item
- A third item
HTML
<div class="card" style="width: 18rem;">
<div class="card-header">Featured</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
</div>- An item
- A second item
- A third item
HTML
<div class="card" style="width: 18rem;">
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-footer">Card footer</div>
</div>Kitchen sink
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
HTML
<div class="card" style="width: 18rem;">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-body">
<a href="#!" class="card-link">Card link</a>
<a href="#!" class="card-link">Another link</a>
</div>
</div>Header and footer
Caps get a faint navy tint (rgba(navy-900, .04)) in light mode.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card">
<div class="card-header">Featured</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Headings inside the header lose their bottom margin automatically.
Header
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card">
<h5 class="card-header">Header</h5>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Whatcha gonna do when the bracket runs wild on you?
HTML
<div class="card text-center">
<div class="card-header">Quote</div>
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>Whatcha gonna do when the bracket runs wild on you?</p>
<footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</div>
</div>Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card text-center">
<div class="card-header">Featured</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
<div class="card-footer text-body-secondary">2 days ago</div>
</div>Sizing
Cards fill their parent. Constrain them with the grid, with sizing utilities, or with inline styles.
Using grid markup
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereSpecial title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="row">
<div class="col-sm-6 mb-3 mb-sm-0">
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>Using utilities
HTML
<div class="card w-75 mb-3">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Button</a>
</div>
</div>
<div class="card w-50">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Button</a>
</div>
</div>Using custom CSS
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Text alignment
Use text utilities on the card or on individual parts.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereSpecial title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereSpecial title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card mb-3" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card text-center mb-3" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card text-end" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Navigation
Put a nav in the header with .card-header-tabs or .card-header-pills. These are
static links — the current one carries .active and aria-current. For tabs that
switch panes without a page load, see the radio pattern on Navs & tabs.
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#!">Active</a></li>
<li class="nav-item"><a class="nav-link" href="#!">Link</a></li>
<li class="nav-item"><a class="nav-link disabled" aria-disabled="true">Disabled</a></li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereHTML
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-pills card-header-pills">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#!">Active</a></li>
<li class="nav-item"><a class="nav-link" href="#!">Link</a></li>
<li class="nav-item"><a class="nav-link disabled" aria-disabled="true">Disabled</a></li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#!" class="btn btn-primary">Go somewhere</a>
</div>
</div>Images
Image caps
.card-img-top and .card-img-bottom round the matching corners.
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 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
HTML
<div class="card mb-3">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
<svg class="card-img-bottom" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
</div>Image overlays
.card-img as the background, .card-img-overlay for the text on top. The image
sets the card height, so keep it tall enough for the copy. Use .text-bg-dark or a dark image so
the text stays legible.
HTML
<div class="card text-bg-dark">
<svg class="card-img" width="100%" height="270" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Card image" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-900)"/><text x="50%" y="50%" fill="var(--bs-navy-300)" dy=".3em" text-anchor="middle">Card image</text></svg>
<div class="card-img-overlay">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small>Last updated 3 mins ago</small></p>
</div>
</div>Horizontal
A grid row with .g-0 puts the image beside the body. Use .rounded-start on the image to match the card corner.
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
HTML
<div class="card mb-3" style="max-width: 540px;">
<div class="row g-0">
<div class="col-md-4">
<svg class="img-fluid rounded-start" width="100%" height="250" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image</text></svg>
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>Card styles
Background and color
.text-bg-{color} sets a background and a contrasting text colour. All eleven theme colours are
available, including gold, navy and cream.
Primary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Secondary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Success card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Danger card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Warning card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Info card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Light card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Dark card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Gold card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Navy card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Cream card title
Some quick example text to build on the card title and make up the bulk of the card's content.
HTML
<div class="col"><div class="card text-bg-primary mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Primary card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-secondary mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Secondary card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-success mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Success card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-danger mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Danger card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-warning mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Warning card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-info mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Info card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-light mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Light card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-dark mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Dark card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-gold mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Gold card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-navy mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Navy card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card text-bg-cream mb-3"><div class="card-header">Header</div><div class="card-body"><h5 class="card-title">Cream card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>Border
Use border utilities for the frame colour, and .text-* for the body text. .border-primary is gold.
Primary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Secondary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Success card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Danger card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Cream card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Gold card title
Some quick example text to build on the card title and make up the bulk of the card's content.
HTML
<div class="col"><div class="card border-primary mb-3"><div class="card-header">Header</div><div class="card-body text-primary"><h5 class="card-title">Primary card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card border-secondary mb-3"><div class="card-header">Header</div><div class="card-body text-secondary"><h5 class="card-title">Secondary card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card border-success mb-3"><div class="card-header">Header</div><div class="card-body text-success"><h5 class="card-title">Success card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card border-danger mb-3"><div class="card-header">Header</div><div class="card-body text-danger"><h5 class="card-title">Danger card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card border-cream mb-3"><div class="card-header">Header</div><div class="card-body text-cream"><h5 class="card-title">Cream card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>
<div class="col"><div class="card border-gold mb-3"><div class="card-header">Header</div><div class="card-body text-gold"><h5 class="card-title">Gold card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></div></div></div>Mixins utilities
Caps and bodies accept the same utilities. Here the cap background is removed and the border colour is reused.
Success card title
Some quick example text to build on the card title and make up the bulk of the card's content.
HTML
<div class="card border-success mb-3" style="max-width: 18rem;">
<div class="card-header bg-transparent border-success">Header</div>
<div class="card-body text-success">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer bg-transparent border-success">Footer</div>
</div>Bracket frame
The brand helper .frame-bracket (from scss/_brand.scss) resets the card and its
caps, images and nested list group to the 2 px bracket radius. Use it for tournament brackets, tale-of-the-tape
boxes and anything that should read as "data" rather than "content".
- "The Anchor" Morales#1
- Big Jim Caldwell#8
Tale of the tape
- Height
- 6 ft 4 in
- Weight
- 265 lb
- Reach
- 79 in
HTML
<div class="col">
<div class="card frame-bracket">
<div class="card-header text-marquee">Quarter-final 1</div>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between"><span>"The Anchor" Morales</span><span class="stat">#1</span></li>
<li class="list-group-item d-flex justify-content-between"><span>Big Jim Caldwell</span><span class="stat">#8</span></li>
</ul>
<div class="card-footer text-body-secondary">Winner advances to the semi-final</div>
</div>
</div>
<div class="col">
<div class="card frame-bracket text-bg-navy">
<div class="card-body">
<h5 class="card-title text-marquee">Tale of the tape</h5>
<dl class="row mb-0 stat">
<dt class="col-6">Height</dt><dd class="col-6 text-end mb-1">6 ft 4 in</dd>
<dt class="col-6">Weight</dt><dd class="col-6 text-end mb-1">265 lb</dd>
<dt class="col-6">Reach</dt><dd class="col-6 text-end mb-0">79 in</dd>
</dl>
</div>
</div>
</div>Card layout
Card groups
.card-group joins cards into a single flex row with shared borders from sm up. Add
.card-footer to each and the footers line up because the cards share a height.
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.
HTML
<div class="card-group">
<div class="card">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card-footer"><small class="text-body-secondary">Last updated 3 mins ago</small></div>
</div>
<div class="card">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
</div>
<div class="card-footer"><small class="text-body-secondary">Last updated 3 mins ago</small></div>
</div>
<div class="card">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">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.</p>
</div>
<div class="card-footer"><small class="text-body-secondary">Last updated 3 mins ago</small></div>
</div>
</div>Grid cards
Use .row-cols-* for a responsive card grid, .g-* for gutters and
.h-100 on each card for equal heights.
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.
HTML
<div class="row row-cols-1 row-cols-md-2 g-4">
<div class="col">
<div class="card h-100">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a short card.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<svg class="card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="var(--bs-navy-700)"/><text x="50%" y="50%" fill="var(--bs-gold-300)" dy=".3em" text-anchor="middle">Image cap</text></svg>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card-footer"><small class="text-body-secondary">Last updated 3 mins ago</small></div>
</div>
</div>
</div>CSS
All of Bootstrap's --bs-card-* variables apply.
.card {
--bs-card-spacer-y: 1rem;
--bs-card-spacer-x: 1rem;
--bs-card-border-color: var(--bs-border-color-translucent); // rgba(navy-900, .175)
--bs-card-border-radius: 6px; // $card-border-radius: $border-radius
--bs-card-inner-border-radius: calc(6px - var(--bs-border-width));
--bs-card-cap-bg: rgba(10, 27, 61, 0.04); // $card-cap-bg
--bs-card-bg: var(--bs-body-bg);
--bs-card-group-margin: 0.75rem; // spacer step 3
}
The bracket helper overrides the radius variables in place:
.frame-bracket {
--bs-border-radius: 2px;
--bs-card-border-radius: 2px;
--bs-card-inner-border-radius: 2px;
--bs-list-group-border-radius: 2px;
--bs-border-radius-lg: 2px;
border-radius: 2px;
}