Skip to content

Commit

Permalink
img in horizontal card (twbs#34160)
Browse files Browse the repository at this point in the history
* docs(cards): img in horizontal card

Closes twbs#34145 

Simply adds `img-fluid` and `rounded-start` classes to horizontal card example to ensure copy-pasting from the docs matches the expectation.

* Update site/content/docs/5.0/components/card.md

Co-authored-by: Mark Otto <markd.otto@gmail.com>
  • Loading branch information
2 people authored and marvin-hinkley-vortx committed Aug 18, 2021
1 parent be6ad6e commit 91deb96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/5.0/components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Using a combination of grid and utility classes, cards can be made horizontal in
<div class="card mb-3" style="max-width: 540px;">
<div class="row g-0">
<div class="col-md-4">
{{< placeholder width="100%" height="250" text="Image" >}}
{{< placeholder width="100%" height="250" text="Image" class="img-fluid rounded-start" >}}
</div>
<div class="col-md-8">
<div class="card-body">
Expand Down

0 comments on commit 91deb96

Please sign in to comment.