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

Social proof section HTML & CSS FlexBox Solution

Antonio Scardoviโ€ข 40

@antonioscardovi

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


I had trouble with background images, what's a better solution for them? I also noticed the testimonial cards are not responsive in production, I couldn't get them to automatically center with flexbox, any suggestions here?

Community feedback

Anna Leighโ€ข 5,135

@brasspetals

Posted

Hi, Antonio! Hopefully I can help with some of your questions. ๐Ÿ˜ƒ

If you remove height: 100vh from the body, your background images will display correctly.

While this wonโ€™t fix everything, I worked with your code a bit and found some things that will help with general alignment:

  • Adding a padding to your section element. This will help the top and bottom sections line up better.
  • Removing height: 50vh from top and bottom divs will also help with responsiveness.
  • Removing all the margins from top-left, title, and description

The testimonials are not responsive because you have given them a specific height and width. Using max-height or max-width would probably be better, but you may have to play around with the values. I also suggest changing the bottom to just the following:

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

To get the first testimonial to line up with the top, you will have to remove its margin-left.

2
Dawidโ€ข 440

@dwddgsz

Posted

Hello

At this (max-width:768px) you can try add margin:0 auto to .bottom .test. It should do the job. Keep up good work

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