Card in a Gallery Layout

Code Snippets

Articles and Blogs

Series

Products

Katacoda Courses

Katacoda Lessons

eBooks

Videos

Cheat sheet

Code Snippets

Basic Card Example

  <div class="pf-c-card rhd-c-card__list">
  <div class="rhd-c-card-content">
    <h3 class="rhd-c-card__title"><a href="#" class="rhd-m-link">Title of the article</a></h3>
    <p class="rhd-c-card__body ">This is the article description that can go to three lines and will be followed by a footer.
      <span class="rhd-m-list__comment"><i class="fas fa-comment"></i> 2</span>
    </p>
  </div>
</div>

Cheat Sheet Card Example

  <div class="pf-c-card rhd-c-card">
  <div class="rhd-c-card__tag">
    <i class="far fa-file-code"></i>
    Cheat sheet
  </div>
  <div class="rhd-c-card-content">
    <h3 class="rhd-c-card__title rhd-m-card-title__no-image">
      Cheat sheet title that can go to two lines only and then must truncate after it passes two lines.
    </h3>
    <div class="rhd-c-card__footer">
      <div class="rhd-c-card__footer--author">
        Author Name & Author Name
      </div>
    </div>
    <img src="https://developers.redhat.com/sites/default/files/styles/card_small/public/kubernetes-cheat-sheet-cover.png?itok=io1KFs4d" class="rhd-c-card__image-body"/>
    <div class="rhd-c-card__footer">
      <div class="rhd-c-card__footer--download">
        <a href="#" class="rhd-m-link">Download <i class="fas fa-arrow-right"></i></a>
      </div>
    </div>
  </div>
</div>
Edit this page -->