Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 10 months ago

Social Proof Component HTML, CSS using flexbox

Dangelo•480
@Dangelobast
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?

My best achievement with this component is being able to understand responsive units and properly position a background decoration. Definitely have to improve the way I approach this.

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

The background decoration was giving me a lot of issues and for some reason, I got stuck thinking about a million things until I realized I was setting rem units to my background meaning it would not shrink with my viewport causing overlap issues, the solution was to get familiarized with vw and vh units since they are relative to the viewport.

To conclude, since vw and vh are relative to viewport as it becomes smaller it will have an effect on your background image as it decreases so your background won't overlap.

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

Any tips when positioning backgrounds and avoiding setting fixed widths or heights, including containers that need to be set to a specific width

In my CSS I had to set max-width of intro-container to 60rem because it was set to 25rem before causing my heading and main paragraph to not occupy the whole space of flex container.

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