Bootstrap CSS Classes

Bootstrap CSS class .card-img-top

<div class="card">
  <img class="card-img-top" src="/placeholder/pictures/image.svg" alt="Card image cap">
  <div class="card-body"> Some more card content </div>
</div>

Preview

CSS source

/* _card.scss:128 */
.card-img-top {
  width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
  @include border-top-radius($card-inner-border-radius);
}

Check .card-img-top in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Bootstrap CSS classes in Cards category

© 2024 Shuffle. All rights reserved.