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

Marta 630

@martam90

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, any improvement is welcomed. Thank you.

Community feedback

P
ApplePieGiraffe 30,565

@ApplePieGiraffe

Posted

Hey there, again, Marta! 👋

I think you've done a good job on this challenge! 👍 Your solution looks good and is responsive! 👏

I suggest,

  • Adding a max-width to the main container or wrapper to prevent the content of the page from becoming too wide on extra-large screens.
  • Adding overflow-x: hidden to the body (or something similar) to prevent a horizontal scroll bar from appearing along the bottom of the page when the screen width decreases in the desktop layout.
  • Horizontally centering the content of the page in the tablet layout (just below 768px), which you can easily do by adding margin: 0 auto; to section.wrapper.

Keep coding (and happy coding, too)! 😁

1

Marta 630

@martam90

Posted

@ApplePieGiraffe thank you for your feedback. I wonder if by adding max-width do you mean percentage width of 100%? Or in that cases it is better to use precise width of let say 1200px? Thanks!

0
P
ApplePieGiraffe 30,565

@ApplePieGiraffe

Posted

@martam90

If you add width: 100% to the section.wrapper, it'll take up 100% of the width of its parent element, which is in this case, the body. That's good for layouts that are 1440px wide and below, but if the section.wrapper is still 100% of the width of the viewport at around 1900px, things begin to look rather far apart and a little stretched. That's why if you add max-width: 1440px (or something similar) to section.wrapper and center it in the viewport using flexbox or auto margins, there'll simply be blank space to the sides of the content and the design won't be stretched or anything on extra-large screens. 😉

1
Web Frog 1,840

@MasterDev333

Posted

Good work @Marta! It would be great if you make your class names more readable. I suggest you use BEM naming conventions. It's pretty cool~ Hope it helps. Happy coding~ :)

0

Marta 630

@martam90

Posted

@MasterDev333 thanks, I know BEM but I think I have some kind of phobia using it :) I think it is right time to start using BEM though. Thank you :)

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