Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive - Testimonial grid section

Koli 110

@KoliOyama

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Built with •Semantic HTML5 markup •CSS custom properties •Flexbox •CSS Grid •Mobile-first workflow

This challenge was a bit tricky. I had some issues making the text of the 3rd, 4th, and 5th cards sit on the same base as it is in the image preview. If anyone could do just that I'd like to know your process.

Community feedback

P
Scott 240

@scottmotion

Posted

I added a wrapper around each testimonial like this:

<article class="testimonial">
    <div class="testimonial__wrapper">
        ...Testimonial elements here...
    <div>
</article>

.testimonial__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

The justify-content: space-between will help space out the content if the column stretches. The gap replaces margin-top on the inner elements, so you can remove that!

Marked as helpful

0

Koli 110

@KoliOyama

Posted

Thank You!@scottmotion

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord