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

P
Lo-Deck 1,760

@Lo-Deck

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


Hi Front-end Mentor community. Here is my solution for Social-proof-section.

I used grid to display the website in the desktop version. But I have some question about it. Should I use the rem measures for margin, padding, etc, or I'd better use measure like % or vw instead.

What is the best to use with grid?

Can you give me some tips about it. Thank you all;

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hi, Lo-Deck! 👋

For margin and padding, I recommend using rem. Most of the time, it is better to have a consistent space.

You can use fluid space by using viewport units and clamp() function. You need to make sure the minimum and the maximum value using rem unit. If you use a viewport or percentage unit, the space will keep changing.

This tool can help you generate fluid space — Fluid Responsive Design | Utopia

In this case, I think it is better to use grid-template-areas. You can divide it into three areas. The first area is the "10,000+ of our users love our products" and the below paragraph. The second area is the ratings. The third area is the testimonials.

Also, you may only need four columns instead of 12 columns. For the desktop layout, two columns for the first area and the second area. The testimonials take all four columns.

Here are some suggestions for improvements:

I hope this helps. Happy coding! 😄

Marked as helpful

2

P
Lo-Deck 1,760

@Lo-Deck

Posted

@vanzasetia Thanks for your comment and your links. It is very helpful.

0
Vanza Setia 27,795

@vanzasetia

Posted

@Lo-Deck

Happy to hear that was helpful! 😊

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