is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.

Bootstrap class: .card-img-overlay

<div class="card">
  <img class="card-img" src="/placeholder/pictures/image.svg" alt="Card image">
  <div class="card-img-overlay">
    <p class="card-text">I'm text that has a background image!</p>


Card image

I'm text that has a background image!

Tips 💡

Sass source

/* _card.scss:113 */
.card-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: $card-img-overlay-padding;

Uses variables

Code copied to the clipboard.

Copying failed

/* _card.scss:113 */

More in Bootstrap Cards