CSS Testimonial Cards

CSS testimonial cards is a endorsement from a customer, client, or user of a product or service. Testimonial cards are often used by businesses to promote their products and services and to build trust with potential customers.

Testimonial Card HTML CSS

"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
<div class="testimonial-card-1">
    <div class="testimonial-body">
      <h5>
        "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it
        has tried to contact us."
      </h5>
    </div>
    <div class="testimonial-footer">
      <div class="user-details">
        <p class="primary-text">PELICAN STEVE</p>
        <p class="secondary-text">UX Designer</p>
      </div>
      <div class="user-avatar">
        <img src="https://source.unsplash.com/xyauiSBWRFs" alt="card image" />
      </div>
    </div>
</div>
.testimonial-card-1 {
    position: relative;
    padding: 1.2rem;
    overflow: hidden;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 250px;
    border-radius: 8px;
    transition: 0.2s ease-in-out;
}
.testimonial-card-1 .testimonial-body {
    margin-bottom: 1rem;
    box-sizing: border-box;
}
.testimonial-card-1 .testimonial-body h5 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    color: #142b6f;
}
.testimonial-card-1 .testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}
.testimonial-card-1 .testimonial-footer .primary-text{
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #142b6f;
}
.testimonial-card-1 .testimonial-footer .secondary-text{
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
    color: #142b6f;
}
.testimonial-card-1 .testimonial-footer .user-avatar {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 50%;
}
.testimonial-card-1 .testimonial-footer .user-avatar img {
    width: 100%;
}
.testimonial-card-1:hover {
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
}
.testimonial-card-1 {
    position: relative;
    padding: 1.2rem;
    overflow: hidden;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 250px;
    border-radius: 8px;
    transition: 0.2s ease-in-out;
    .testimonial-body {
        margin-bottom: 1rem;
        box-sizing: border-box;
        h5 {
            font-size: 1.25rem;
            font-weight: 500;
            margin: 0;
            color: #142b6f;
        }
    }
    .testimonial-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .primary-text {
            font-size: 1rem;
            margin-bottom: 0.2rem;
            color: #142b6f;
        }
        .secondary-text {
            font-size: 0.8rem;
            font-style: italic;
            margin: 0;
            color: #142b6f;
        }
        .user-avatar {
            width: 70px;
            height: 70px;
            overflow: hidden;
            border-radius: 50%;
            img {
                width: 100%;
            }
        }
    }
    &:hover {
        box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
    }
}

Responsive testimonial Card

"I don't need to compromise on my principles. Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."

PELICAN STEVE

UX Designer

Stream the Acme event
<div class="testimonial-card-2">
    <div class="testimonial-details">
      <h5>
        "I don't need to compromise on my principles, because they don't have the slightest bearing on what happens
        to me anyway. Sometimes I think the surest sign that intelligent life exists elsewhere in the
        universe is that none of it has tried to contact us."
      </h5>
      <div class="user-details">
        <p class="primary-text">PELICAN STEVE</p>
        <p class="secondary-text">UX Designer</p>
      </div>
    </div>

    <div class="testimonial-image">
      <img src="https://source.unsplash.com/xyauiSBWRFs" alt="card image" />
    </div>
</div>
.testimonial-card-2 {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    height: 100%;
}
.testimonial-card-2 > div {
    width: 50%;
}
.testimonial-card-2 .testimonial-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    box-sizing: border-box;
}
.testimonial-card-2 .testimonial-details h5 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #142b6f;
}
.testimonial-card-2 .testimonial-details .user-details {
    margin-top: 2rem;
}
.testimonial-card-2 .testimonial-details .user-details .primary-text{
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #142b6f;
}
.testimonial-card-2 .testimonial-details .user-details .secondary-text{
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    color: #142b6f;
}
.testimonial-card-2 .testimonial-image img {
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 100%;
}
@media all and (max-width: 576px) {
    .testimonial-card-2 {
        flex-direction: column-reverse;
    }
    .testimonial-card-2 .testimonial-details {
        padding: 1rem;
    }
    .testimonial-card-2 > div {
        position: relative;
        width: 100%;
    }
    .testimonial-image img {
        max-height: 500px;
    }
}
.testimonial-card-2 {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    height: 100%;
    & > div {
        width: 50%;
    }
    .testimonial-details {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 2rem;
        box-sizing: border-box;
        h5 {
            font-size: 1.25rem;
            font-weight: 500;
            color: #142b6f;
        }
        .user-details {
            margin-top: 2rem;
            .primary-text {
                font-size: 1rem;
                margin-bottom: 0.2rem;
                color: #142b6f;
            }
            .secondary-text {
                font-size: 0.9rem;
                font-style: italic;
                margin: 0;
                color: #142b6f;
            }
        }
    }
    .testimonial-image {
        img {
            object-fit: cover;
            object-position: top;
            width: 100%;
            height: 100%;
        }
    }
}
@media all and (max-width: 576px) {
    .testimonial-card {
        flex-direction: column-reverse;
        .testimonial-details {
            padding: 1rem;
        }
        & > div {
            position: relative;
            width: 100%;
        }
        .testimonial-image {
            img {
                max-height: 500px;
            }
        }
    }
}

Testimonial cards design layout codepen

Responsive testimonial card codepen