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 Section using Flex Box

@TonyAppiah

Desktop design screenshot for the Social proof section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello everyone.

I used the 'Position' property a lot in this project for positioning the background patterns, ratings and testimonial components; it was a bit challenging but I sailed through. Are there a other ways of achieving aforementioned apart from using the 'Position' property? Thank you.

Community feedback

Sahil Gill 290

@SahilGill003

Posted

For testimonials container you can use grid like this : Image

@media (width >= 1440px) {
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 20px 20px auto 20px 20px;
    column-gap: 2rem;
}

.testimonials {
    grid-row:1/4; // span rows from 1 to 4
}

.testimonials:nth-child(2) { 
   grid-row:2/5;
}

.testimonials:nth-child(3){
   grid-row:3/6;
}
}

Marked as helpful

0

@TonyAppiah

Posted

@SahilGill003

Much appreciated Sahil. It's great to see things from another angle.

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