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
- @scottmotionPosted over 1 year ago
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 helpful0
Please log in to post a comment
Log in with GitHubJoin 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