Skip to content

Commit

Permalink
Make image overlays look like v4 + closer to Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Aug 29, 2022
1 parent 32497f3 commit 972f33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/5.2/components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ Similar to headers and footers, cards can include top and bottom "image caps"—
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.

{{< example >}}
<div class="card">
{{< placeholder width="100%" height="270" class="bd-placeholder-img-lg card-img" text="Card image" >}}
<div class="card text-bg-dark">
{{< placeholder width="100%" height="270" class="bd-placeholder-img-lg card-img" text="Card image" background="#000" >}}
<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>
Expand Down

0 comments on commit 972f33a

Please sign in to comment.