<div class="card-container">


<div class="card">
  <div class="card--img"></div>
  <div class="card--text">
    <div class="card--title">
      Recipe Title
    </div>
    <div class="card--sub">
      A short description of the recipe will go
here. Lorem Ipsum dolor sit amet amet consecteur A short description of the recipe will go here. Lorem Ipsum dolor sit amet consecteur.
    </div>
   <a href="#" class="cta">View Recipe</a>
  </div>
</div>
  
 <div class="card">
  <div class="card--img"></div>
  <div class="card--text">
    <div class="card--title">
      Recipe Title
    </div>
    <div class="card--sub">
      A short description of the recipe will go
here. Lorem Ipsum dolor sit amet consecteur A short description of the recipe will go here. Lorem Ipsum dolor sit amet consecteur.
    </div>
   <a href="#" class="cta">View Recipe</a>
  </div>
</div>
  
  <div class="card">
  <div class="card--img"></div>
  <div class="card--text">
    <div class="card--title">
      Recipe Title
    </div>
    <div class="card--sub">
      A short description of the recipe will go
here. Lorem Ipsum dolor sit amet consecteur A short description of the recipe will go here. Lorem Ipsum dolor sit amet consecteur.
    </div>
   <a href="#" class="cta">View Recipe</a>
  </div>
</div>
</div>
//* {
 // outline: 1px solid red;
//}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@600;700&display=swap');

html {
  font-family: 'Open Sans', sans-serif;
  font-size: 62.5%;
  padding: 0 25rem;
}

body {
  background-color: #fafafa;
}

.card-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.card {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background-color: #fafafa;
  border: 2px solid rgba(0, 0, 0, .10);
  max-width: 40rem;
  min-height: 63rem;
  box-shadow: 2px 4px 24px rgba(0, 0, 0, 0.15);

  &--img {
    background: url('https://i0.wp.com/images-prod.healthline.com/hlcmsresource/images/AN_images/eggs-breakfast-avocado-1296x728-header.jpg?w=1155&h=1528');
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 32rem; 
  }
  
  &--text {
    display: flex;
    flex-direction: column;
    padding: 0 2rem 2rem 2rem;
  }
  
  &--title {
    padding-top: 3rem;
    color: #313135;
    font-weight: 700;
    font-size: 2.4rem;
  }
  
  &--sub {
    padding-top: 2rem;
    font-weight: 600;
    font-size: 1.8rem;
    color: #59595C;
    margin-bottom: 40px;
  }
}

.cta {
  justify-self: flex-end;
  text-decoration: none;
  color: #f2f2f2;
  background-color: #0B6E4F;
  border-radius: 4px;
  font-size: 2.4rem;
  padding: .4rem 0;
  width: 19rem;
  text-align: center;
  box-shadow: 2px 4px 12px rgba(10, 88, 64, 0.2);
}

.cta:hover {
  box-shadow: 2px 4px 12px rgba(10, 88, 64, 0.35);
}

View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.