Bootstrap 5 Card Group
A Bootstrap 5 Card Group renders a set of cards as a single, unified block where each card shares equal height and flush borders between them — no gaps, no gutters. Use it when you need cards to feel like a cohesive panel rather than a grid of independent items, such as pricing tiers or feature comparisons displayed side by side.
Primary Class
.card-groupCommon Use Cases
- →Pricing plan comparison tables where three tiers (Free, Pro, Enterprise) must align their headers, bodies, and footers at identical heights regardless of content length
- →Team member profiles on an About page where each card shows a photo, name, role, and bio — the equal-height layout prevents a ragged, mismatched row
- →Product feature highlights grouping three or four key selling points (Speed, Security, Support, Uptime) as a unified strip beneath a hero section
- →Step-by-step onboarding flows showing numbered process steps (Sign Up → Connect → Launch) as connected cards that visually imply a sequence
Variants & Classes
| Variant | Description |
|---|---|
| Card Group Default | Standard card group with Bootstrap's default styling. |
| Card Group Responsive | Responsive variant that adapts to different screen sizes. |
Code Example
<div class="card-group">
<div class="card">
<div class="card-body">
<h5 class="card-title">Free Plan</h5>
<p class="card-text">Perfect for personal projects. Includes 1 site, 5 pages, and community support.</p>
</div>
<div class="card-footer">
<small class="text-muted">$0 / month</small>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Pro Plan</h5>
<p class="card-text">Ideal for freelancers and small teams. Unlimited pages, custom domain, and priority email support.</p>
</div>
<div class="card-footer">
<small class="text-muted">$19 / month</small>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Enterprise Plan</h5>
<p class="card-text">Built for agencies. White-label output, team seats, SLA-backed uptime, and a dedicated account manager.</p>
</div>
<div class="card-footer">
<small class="text-muted">$99 / month</small>
</div>
</div>
</div>Live Examples
Basic Card Group
Canvas Framework Variants
The Canvas template extends Bootstrap 5 with 1,658+ component variants. Generate any of these using Canvas Builder:
- ✓Canvas Builder generated card group with custom colours
- ✓Card Group with interactive states
- ✓Responsive card group for all screen sizes
Best Practices
Use card footers to force bottom-alignment across uneven content
Because Card Group uses flexbox, adding a <code>card-footer</code> to every card in the group ensures price tags, CTAs, or disclaimers lock to the bottom of each card — even when the body text varies in length.
Card Group collapses to a stacked column on mobile automatically
Below Bootstrap's <code>sm</code> breakpoint (576px), cards in a group stack vertically and borders revert to standard rounded styles — no extra utility classes needed, but test your content order to make sure it reads logically when stacked.
Limit groups to four cards maximum for readability
Beyond four cards, the individual card width becomes too narrow on mid-range screens; switch to <code>row row-cols-*</code> with <code>card-deck</code> behaviour using gutters instead, which gives you more responsive breakpoint control.
Override the flush border between cards with a custom separator colour
Cards in a group share a single collapsed border via negative margins. Target <code>.card-group > .card + .card</code> in your CSS and set <code>border-left</code> explicitly to replace the default border colour with your brand accent.