Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

Social Proof Section with HTML and CSS

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

Solution retrospective


Hi there! Thanks for viewing my solution! :)

I struggled with this for about 3 hours because I was experimenting with grids. I resorted back to flexbox instead. I guess there is much for me to learn for CSS.

Just a few questions.

1 - Initially my ratings section in the mobile view looks too small compared to the rest of the layout, even though I took away the margins and paddings on the sides. It was only when I used the inspect tool and realised "inline-block" in the parent container actually worked. May I know why "display: flex" in the parent container did not extend the width (of the ratings) fully? - You may check it in line 141 of my css file.

2 - I'm not familiar with grids, but is there a feasible way to achieve this layout?

3 - I used CSS transform to adjust the position of the cards and ratings in the desktop view, is there a better way to achieve this effect?

4 - May I know what can I do to improve my code?

Thanks again!

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 Melvin'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

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