<div class="card">
  <div class="image"></div>
  <div class="content">
    <h2>About strawberries</h2>
    <p>They're red.</p>
    <p>Grab yours now!</p>
  </div>
</div>
.card {
  background-color: rgb(255, 255, 255);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  -moz-box-pack: justify;
  justify-content: space-between;
  box-shadow: rgba(12, 15, 20, 0.02) 0px 0px 0px 1px,
    rgba(12, 15, 20, 0.06) 0px 0px 1px 0px,
    rgba(12, 15, 20, 0.06) 0px 2px 2px 0px;
  padding: 16px 24px;
  max-width: 344px;
  margin: 24px auto;
}

@media (min-width: 768px) {
  .card {
    flex-direction: row;
    max-width: 700px;
  }
}

.image {
  height: 214px;
  background-image: url("https://assets.codepen.io/3652395/strawberry-juice-png-0.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-origin: content-box;
  background-color: #b2eae8;
  padding: 16px;
  margin: -16px -24px 24px;
  border-radius: 4px 4px 0 0;
}

@media (min-width: 768px) {
  .image {
    flex-grow: 0;
    flex-shrink: 0;
    align-self: stretch;
    width: 286px;
    height: unset;
    margin: -16px 24px -16px -24px;
    border-radius: 4px 0px 0px 4px;
  }
}

.content {
  width: 100%;
}

h2 {
  font-family: sans-serif;
  color: #333333;
}

p {
  font-family: sans-serif;
  color: #333333;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.