Bootstrap class: .card-subtitle

Do not have time to learn all the Bootstrap classes?

Try drag & drop Bootstrap builder

<div class="card">
  <div class="card-body">
    <h4 class="card-title">Card title</h4>
    <h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
    <p class="card-text">
      Some quick example text to build on the card title
      and make up the bulk of the card's content.
    </p>
    <a href="#" class="card-link">Card link</a>
    <a href="#" class="card-link">Another link</a>
  </div>
</div>

Preview

Card title

Card subtitle

Some quick example text to build on the card title and make up the bulk of the card's content.

Card link Another link

Sass source

/* _card.scss:45 */
.card-subtitle {
  margin-top: -($card-spacer-y / 2);
  margin-bottom: 0;
}

Uses variables

Code copied to the clipboard.

Copying failed

/* _card.scss:45 */
$card-spacer-y

More in Bootstrap Cards