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 Challenge using CSS Flexbox

@MatthewA77

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


Can we solve this webpage using another method?

Community feedback

@Ziyyahh

Posted

Hi, i think you submitted the wrong live site for this challenge.

You can use CSS grid to solve this project, give the content a class of container, and then you can use this to arrange the layout;

body {

background-color: #ecf2f8;

display: flex;

align-items: center;

justify-content: center;

min-height: 100vh;

}

(to center the container div, if you have a footer then add flex-direction: row;)

To align the container items;

.container{

display: grid;

grid-template-columns: repeat(4, 1fr);

grid-template-rows: repeat(2, 1fr);

max-width: 900px;

gap:1rem;

}

To alin each container to look like the goal image,

.testimonial-1{

grid-column: span 2;

}

.testimonial-3{

grid-row: span 2;

}

.testimonial-4{

grid-column: span 2;

}

You may need to do some realigning in your code as that would help easily understand the code, but this is just a basic template to get the layout.

Marked as helpful

0

@MatthewA77

Posted

@Ziyyahh thank you for reminding me for the wrong live site. How can I update my solution? Thanks for the CSS Grid solution btw

1

@Ziyyahh

Posted

@MatthewA77 You're welcome, If you click on your solution, you have an option to edit solution or you can submit a new one.

1

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