Stretched Link
A stretched link makes its whole containing block clickable, so a card, list row or tile behaves like one big link. The nearest parent with position: relative (such as a card or position-relative) decides how far the clickable area reaches.
1Card with a stretched button
The button link stretches over the whole card; the dashed outline marks the clickable area.
<div class="card hp-hit" style="max-width:18rem">
<img src="https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?auto=format&fit=crop&w=1200&h=800&q=70" class="card-img-top" alt="">
<div class="card-body">
<h3 class="h6 card-title">Gift wrapping</h3>
<p class="card-text small">We measure success by how many shoppers come back and tell their friends.</p>
<a href="#" class="btn btn-primary btn-sm stretched-link">Explore</a>
</div>
</div>2Card title as the link
Putting stretched-link on the title link makes the heading the accessible name of the whole card.
<div class="card hp-hit" style="max-width:22rem">
<div class="card-body">
<span class="badge text-bg-light border mb-2">community</span>
<h3 class="h6"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Our guide to gifts under $50</a></h3>
<p class="small text-body-secondary mb-0">May 22, 2026</p>
</div>
</div>3Media object
A d-flex row with position-relative so the link covers the image and the text.
How to care for linen so it lasts for years
Free shipping on orders over $50 and easy returns within 30 days.
Continue reading<div class="d-flex position-relative gap-3 hp-hit p-2 rounded">
<img src="https://images.unsplash.com/photo-1567958451986-2de427a4a0be?auto=format&fit=crop&w=1200&h=800&q=70" alt="" width="120" height="80" class="rounded flex-shrink-0 object-fit-cover">
<div>
<h3 class="h6 mb-1">How to care for linen so it lasts for years</h3>
<p class="small mb-1">Free shipping on orders over $50 and easy returns within 30 days.</p>
<a href="#" class="stretched-link small">Continue reading</a>
</div>
</div>4Column as the containing block
Grid columns are not positioned, so add position-relative to the column you want to be clickable.
Only this column is clickable
Every piece is made in small batches from materials we test ourselves.
Open article<div class="row g-0 bg-body-tertiary rounded overflow-hidden">
<div class="col-md-5">
<img src="https://images.unsplash.com/photo-1630905119003-329447458f85?auto=format&fit=crop&w=1200&h=800&q=70" alt="" class="w-100 h-100 object-fit-cover" style="min-height:10rem">
</div>
<div class="col-md-7 p-3 position-relative hp-hit">
<h3 class="h6">Only this column is clickable</h3>
<p class="small">Every piece is made in small batches from materials we test ourselves.</p>
<a href="#" class="stretched-link">Open article</a>
</div>
</div>5Product tiles
Shop tiles where the whole card opens the product page.
<div class="row g-3">
<div class="col-md-4">
<div class="card h-100 hp-hit">
<img src="../assets/img/product-8.svg" class="card-img-top" alt="">
<div class="card-body">
<h3 class="h6 mb-1"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Glass bottle</a></h3>
<span class="fw-semibold">$26.00</span>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 hp-hit">
<img src="../assets/img/product-3.svg" class="card-img-top" alt="">
<div class="card-body">
<h3 class="h6 mb-1"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Ceramic mug</a></h3>
<span class="fw-semibold">$22.00</span>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 hp-hit">
<img src="../assets/img/product-12.svg" class="card-img-top" alt="">
<div class="card-body">
<h3 class="h6 mb-1"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Rain jacket</a></h3>
<span class="fw-semibold">$134.00</span>
</div>
</div>
</div>
</div>6Notification rows
List group items are already positioned, so each row is clickable with one stretched link.
just now
10 hours ago
<div class="list-group">
<div class="list-group-item d-flex gap-3">
<span class="text-primary"><i class="bi bi-chat-left-dots" aria-hidden="true"></i></span>
<div>
<a href="#" class="stretched-link link-body-emphasis text-decoration-none fw-semibold small">Inside our new autumn collection</a>
<p class="small text-body-secondary mb-0">just now</p>
</div>
</div>
<div class="list-group-item d-flex gap-3">
<span class="text-primary"><i class="bi bi-bag-check" aria-hidden="true"></i></span>
<div>
<a href="#" class="stretched-link link-body-emphasis text-decoration-none fw-semibold small">What to pack for a rainy weekend outdoors</a>
<p class="small text-body-secondary mb-0">10 hours ago</p>
</div>
</div>
<div class="list-group-item d-flex gap-3">
<span class="text-primary"><i class="bi bi-chat-left-dots" aria-hidden="true"></i></span>
<div>
<a href="#" class="stretched-link link-body-emphasis text-decoration-none fw-semibold small">A beginner's guide to getting started</a>
<p class="small text-body-secondary mb-0">just now</p>
</div>
</div>
</div>7Team member cards
Profile cards that open the member page from anywhere on the card.
<div class="row g-3">
<div class="col-6 col-md-4">
<div class="card text-center h-100">
<div class="card-body">
<img src="../assets/img/avatar-2.svg" alt="" width="72" height="72" class="rounded-circle mb-2">
<h3 class="h6 mb-0"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Diego Morgan</a></h3>
<small class="text-body-secondary">Marketing Lead</small>
</div>
</div>
</div>
<div class="col-6 col-md-4">
<div class="card text-center h-100">
<div class="card-body">
<img src="../assets/img/avatar-7.svg" alt="" width="72" height="72" class="rounded-circle mb-2">
<h3 class="h6 mb-0"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Maya Harlow</a></h3>
<small class="text-body-secondary">Content Writer</small>
</div>
</div>
</div>
<div class="col-6 col-md-4">
<div class="card text-center h-100">
<div class="card-body">
<img src="../assets/img/avatar-5.svg" alt="" width="72" height="72" class="rounded-circle mb-2">
<h3 class="h6 mb-0"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Ethan Whitaker</a></h3>
<small class="text-body-secondary">Backend Engineer</small>
</div>
</div>
</div>
</div>8Horizontal blog card
A horizontal card layout with the stretched link in the body.
The small habits that make a big difference
Each product is checked by hand before it goes into the box.
<div class="card overflow-hidden hp-hit">
<div class="row g-0">
<div class="col-4">
<img src="https://images.unsplash.com/photo-1573612664822-d7d347da7b80?auto=format&fit=crop&w=1200&h=800&q=70" alt="" class="w-100 h-100 object-fit-cover">
</div>
<div class="col-8">
<div class="card-body">
<h3 class="h6"><a href="#" class="stretched-link link-body-emphasis">The small habits that make a big difference</a></h3>
<p class="small mb-0 d-none d-sm-block">Each product is checked by hand before it goes into the box.</p>
</div>
</div>
</div>
</div>9Pricing card
The plan card selects the plan wherever you click.
<div class="card border-primary hp-hit" style="max-width:18rem">
<div class="card-body text-center">
<h3 class="h6 text-uppercase text-primary">Starter</h3>
<p class="display-6 mb-0">$23.76</p>
<p class="small text-body-secondary">per month</p>
<a href="#" class="btn btn-outline-primary w-100 stretched-link">Select Starter</a>
</div>
</div>10Feature tiles
Bordered feature tiles made clickable with a position-relative wrapper.
<div class="row g-3">
<div class="col-md-4">
<div class="position-relative border rounded-3 p-3 h-100">
<span class="fs-3 text-primary"><i class="bi bi-lightning-charge" aria-hidden="true"></i></span>
<h3 class="h6 mt-2">Sustainable materials</h3>
<p class="small mb-0">Thousands of shoppers already trust us, and we work hard to keep it that way.</p>
<a href="#" class="stretched-link" aria-label="Learn more about this feature"></a>
</div>
</div>
<div class="col-md-4">
<div class="position-relative border rounded-3 p-3 h-100">
<span class="fs-3 text-primary"><i class="bi bi-shield-check" aria-hidden="true"></i></span>
<h3 class="h6 mt-2">Carbon-neutral delivery</h3>
<p class="small mb-0">Order before 2 pm and most items leave our warehouse the same day.</p>
<a href="#" class="stretched-link" aria-label="Learn more about this feature"></a>
</div>
</div>
<div class="col-md-4">
<div class="position-relative border rounded-3 p-3 h-100">
<span class="fs-3 text-primary"><i class="bi bi-graph-up-arrow" aria-hidden="true"></i></span>
<h3 class="h6 mt-2">Member prices</h3>
<p class="small mb-0">Thousands of five-star reviews from customers who came back for more.</p>
<a href="#" class="stretched-link" aria-label="Learn more about this feature"></a>
</div>
</div>
</div>11Search results
Each result block is one large target, handy on touch screens.
Five pieces for a capsule wardrobe
Our packaging is plastic-free and every delivery is carbon-neutral.
How we choose sustainable materials
Start in minutes and get help from a real person whenever you need it.
What our shoppers asked us most
We listen first, then build a plan around what you actually need.
<div class="vstack gap-3">
<div class="position-relative">
<small class="text-success">mira-deck.example/release</small>
<h3 class="h6 mb-1"><a href="#" class="stretched-link">Five pieces for a capsule wardrobe</a></h3>
<p class="small text-body-secondary mb-0">Our packaging is plastic-free and every delivery is carbon-neutral.</p>
</div>
<div class="position-relative">
<small class="text-success">mira-deck.example/routine</small>
<h3 class="h6 mb-1"><a href="#" class="stretched-link">How we choose sustainable materials</a></h3>
<p class="small text-body-secondary mb-0">Start in minutes and get help from a real person whenever you need it.</p>
</div>
<div class="position-relative">
<small class="text-success">mira-deck.example/story</small>
<h3 class="h6 mb-1"><a href="#" class="stretched-link">What our shoppers asked us most</a></h3>
<p class="small text-body-secondary mb-0">We listen first, then build a plan around what you actually need.</p>
</div>
</div>12File tiles
File cards in a drive view open the file from anywhere on the tile.
<div class="row g-2">
<div class="col-6 col-md-3">
<div class="position-relative border rounded p-3 text-center">
<span class="fs-2 text-danger"><i class="bi bi-filetype-pdf" aria-hidden="true"></i></span><a href="#" class="stretched-link d-block small text-truncate link-body-emphasis text-decoration-none">routine-2</a>
</div>
</div>
<div class="col-6 col-md-3">
<div class="position-relative border rounded p-3 text-center">
<span class="fs-2 text-success"><i class="bi bi-filetype-xlsx" aria-hidden="true"></i></span><a href="#" class="stretched-link d-block small text-truncate link-body-emphasis text-decoration-none">release-26</a>
</div>
</div>
<div class="col-6 col-md-3">
<div class="position-relative border rounded p-3 text-center">
<span class="fs-2 text-warning"><i class="bi bi-filetype-pptx" aria-hidden="true"></i></span><a href="#" class="stretched-link d-block small text-truncate link-body-emphasis text-decoration-none">story-13</a>
</div>
</div>
<div class="col-6 col-md-3">
<div class="position-relative border rounded p-3 text-center">
<span class="fs-2 text-info"><i class="bi bi-file-earmark-image" aria-hidden="true"></i></span><a href="#" class="stretched-link d-block small text-truncate link-body-emphasis text-decoration-none">process-8</a>
</div>
</div>
</div>13Event card with date block
A date badge, title and place in one clickable card.
Inside our new autumn collection
Valencia · 09:30<div class="card hp-hit" style="max-width:24rem">
<div class="card-body d-flex gap-3">
<div class="text-bg-primary rounded text-center px-3 py-2">
<small class="d-block">NOV</small><strong class="fs-4">16</strong>
</div>
<div>
<h3 class="h6 mb-1"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Inside our new autumn collection</a></h3>
<small class="text-body-secondary"><i class="bi bi-geo-alt" aria-hidden="true"></i> Valencia · 09:30</small>
</div>
</div>
</div>14Inbox rows
Message rows where the sender link stretches across the full row.
- Luna Lindqvist17:15
How to care for linen so it lasts for years
- Hana Larsen11:45
A three-step skincare routine that works
- Amara Ibrahim09:45
A small guide to a calmer home
<ul class="list-group">
<li class="list-group-item list-group-item-action d-flex gap-3 align-items-start"><img src="../assets/img/avatar-1.svg" alt="" width="36" height="36" class="rounded-circle"><div class="flex-grow-1"><a href="#" class="stretched-link text-decoration-none link-body-emphasis fw-semibold small">Luna Lindqvist</a><p class="small text-body-secondary mb-0">How to care for linen so it lasts for years</p></div><small class="text-body-secondary text-nowrap">17:15</small></li>
<li class="list-group-item list-group-item-action d-flex gap-3 align-items-start"><img src="../assets/img/avatar-6.svg" alt="" width="36" height="36" class="rounded-circle"><div class="flex-grow-1"><a href="#" class="stretched-link text-decoration-none link-body-emphasis fw-semibold small">Hana Larsen</a><p class="small text-body-secondary mb-0">A three-step skincare routine that works</p></div><small class="text-body-secondary text-nowrap">11:45</small></li>
<li class="list-group-item list-group-item-action d-flex gap-3 align-items-start"><img src="../assets/img/avatar-1.svg" alt="" width="36" height="36" class="rounded-circle"><div class="flex-grow-1"><a href="#" class="stretched-link text-decoration-none link-body-emphasis fw-semibold small">Amara Ibrahim</a><p class="small text-body-secondary mb-0">A small guide to a calmer home</p></div><small class="text-body-secondary text-nowrap">09:45</small></li>
</ul>15Limiting the clickable area
Only the inner box has position-relative, so the stretched link covers it and not the outer card.
This text is outside the clickable area.
<div class="card">
<div class="card-body">
<p class="small text-body-secondary">This text is outside the clickable area.</p>
<div class="position-relative bg-body-tertiary rounded p-3 hp-hit">
<strong class="d-block">Gift wrapping</strong> <a href="#" class="stretched-link small">Open</a>
</div>
</div>
</div>16Category image tiles
Image tiles with an overlay caption; the caption link opens the category.
<div class="row g-2">
<div class="col-md-4">
<div class="position-relative rounded-3 overflow-hidden">
<img src="https://images.unsplash.com/photo-1521335629791-ce4aec67dd15?auto=format&fit=crop&w=800&h=800&q=70" alt="" class="w-100 object-fit-cover" style="height:9rem">
<div class="position-absolute bottom-0 start-0 end-0 p-2" style="background:rgba(0,0,0,.5)">
<a href="#" class="stretched-link link-light fw-semibold text-decoration-none">Accessories</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="position-relative rounded-3 overflow-hidden">
<img src="https://images.unsplash.com/photo-1573612664822-d7d347da7b80?auto=format&fit=crop&w=800&h=800&q=70" alt="" class="w-100 object-fit-cover" style="height:9rem">
<div class="position-absolute bottom-0 start-0 end-0 p-2" style="background:rgba(0,0,0,.5)">
<a href="#" class="stretched-link link-light fw-semibold text-decoration-none">Beauty</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="position-relative rounded-3 overflow-hidden">
<img src="https://images.unsplash.com/photo-1443884590026-2e4d21aee71c?auto=format&fit=crop&w=800&h=800&q=70" alt="" class="w-100 object-fit-cover" style="height:9rem">
<div class="position-absolute bottom-0 start-0 end-0 p-2" style="background:rgba(0,0,0,.5)">
<a href="#" class="stretched-link link-light fw-semibold text-decoration-none">Outdoor</a>
</div>
</div>
</div>
</div>17Course card with progress
A learning card that resumes the course from anywhere on the card.
Secure checkout
<div class="card hp-hit" style="max-width:20rem">
<div class="card-body">
<h3 class="h6"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Secure checkout</a></h3>
<div class="progress mb-1" role="progressbar" aria-label="Course progress" aria-valuenow="61" aria-valuemin="0" aria-valuemax="100" style="--bs-progress-height:.5rem">
<div class="progress-bar" style="width:61%">
</div>
</div>
<small class="text-body-secondary">61% complete</small>
</div>
</div>18Clickable dashboard tiles
Metric tiles that open the matching report.
<div class="row g-2">
<div class="col-md-4">
<div class="card">
<div class="card-body d-flex align-items-center gap-3">
<span class="fs-3 text-primary"><i class="bi bi-cart" aria-hidden="true"></i></span>
<div>
<div class="fs-5 fw-bold">
3.7k
</div>
<a href="#" class="stretched-link small link-secondary">Orders</a>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body d-flex align-items-center gap-3">
<span class="fs-3 text-primary"><i class="bi bi-people" aria-hidden="true"></i></span>
<div>
<div class="fs-5 fw-bold">
2.0k
</div>
<a href="#" class="stretched-link small link-secondary">Visitors</a>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body d-flex align-items-center gap-3">
<span class="fs-3 text-primary"><i class="bi bi-chat-square-text" aria-hidden="true"></i></span>
<div>
<div class="fs-5 fw-bold">
5.2k
</div>
<a href="#" class="stretched-link small link-secondary">Tickets</a>
</div>
</div>
</div>
</div>
</div>19Job listings
Job rows with the title as the stretched link and the details as plain text.
<div class="list-group">
<div class="list-group-item py-3">
<div class="d-flex flex-wrap justify-content-between gap-2">
<a href="#" class="stretched-link fw-semibold text-decoration-none">Project Manager</a><span class="badge text-bg-light border">Remote</span>
</div>
<small class="text-body-secondary">Operations · Melbourne</small>
</div>
<div class="list-group-item py-3">
<div class="d-flex flex-wrap justify-content-between gap-2">
<a href="#" class="stretched-link fw-semibold text-decoration-none">Operations Manager</a><span class="badge text-bg-light border">Remote</span>
</div>
<small class="text-body-secondary">Human Resources · Prague</small>
</div>
<div class="list-group-item py-3">
<div class="d-flex flex-wrap justify-content-between gap-2">
<a href="#" class="stretched-link fw-semibold text-decoration-none">Sales Executive</a><span class="badge text-bg-light border">Part time</span>
</div>
<small class="text-body-secondary">Engineering · Auckland</small>
</div>
</div>20Extra link above the stretched link
Give a second link position-relative and z-2 so it sits above the stretched area and stays clickable on its own.
Our guide to gifts under $50
Members get early access to new drops and prices only they can see.
#guide<div class="card hp-hit" style="max-width:22rem">
<div class="card-body">
<h3 class="h6"><a href="#" class="stretched-link link-body-emphasis text-decoration-none">Our guide to gifts under $50</a></h3>
<p class="small">Members get early access to new drops and prices only they can see.</p>
<a href="#" class="badge text-bg-primary text-decoration-none position-relative z-2">#guide</a>
</div>
</div>