<main>
  <div class="card">
    <img src="https://doodleipsum.com/500x500/hand-drawn?i=b48528b59f8d071fde57e51d2d6c433d" alt="Card image cap">
    <h5>Lorem ipsum dolor</h5>
    <p>Quis nostrud nisi ut aliquip ea commodo consequat.</p>
    <a href="#">Check it</a>
  </div>
  
  <div class="card">
    <img src="https://doodleipsum.com/500x500/hand-drawn?i=9b11b7fde5591be86d8928901e68355f" alt="Card image cap">
    <h5>Consectetur adipiscing elit</h5>
    <p>Duis aute irure dolor in  cillum dolore eu.</p>
    <a href="#">Check it</a>
  </div>
  
  <div class="card">
    <img class="card-img" src="https://doodleipsum.com/500x500/hand-drawn?i=74c909f45ddde824d103db53e2a71e63" alt="Card image cap">
    <h5>Ut enim</h5>
    <p>Excepteur sint occaecat cupidatat non proident.</p>
    <a href="#">Ready for action</a>
  </div>
</main>
@import "https://unpkg.com/open-props";
@import "https://unpkg.com/open-props/normalize.min.css";

@use postcss-preset-env;

main {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: space-around;
  max-inline-size: calc(var(--size-content-1) * 4);
  gap: var(--size-5);
  padding: var(--size-5);
}

.card {
  flex-basis: var(--size-content-1);
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
  background: var(--surface-3);
  border: 1px solid var(--surface-1);
  padding: var(--size-4);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
}

.card > h5 {
  line-height: var(--font-lineheight-1);
}

body {
  display: grid;
  place-content: center;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.