Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Social proof section | 3 Grids and some flexbox

dkaffes•160
@dkaffes
A solution to the Social proof section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Even though I started working the CSS layout using Flexbox for the .ratings-container and the .cards-container, I quickly realized that this approach is not that simple and robust. So I changed course and used Grid instead.

Next time I need to think of the design more and try to choose right from the start the most appropriate tool.

What challenges did you encounter, and how did you overcome them?

I had to do some research so as to produce the repeating icon-star.svg image. Reading through the related MDN documentation helped me overcome this challenge.

What specific areas of your project would you like help with?

I did not get the correct spacing as it is given in the design for the desktop version. When I try to emulate the cards width, the position of the title on the background-image breaks and vice versa. I need some advice that has to do with the spacing between the elements.

I understand the difference between margin and padding but I would like some general advice:

  • How much padding is too much padding?
  • How much grid gap is too much?

When the spacing between elements is big, how should I approach the layout design?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on dkaffes's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License