Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

Profile card component solution with HTML and SCSS

sass/scss
sophie.•150
@sophie-mc-dev
A solution to the Profile card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This is my solution for the Profile Card Component challenge.

  • To align the profile stats at the bottom of the card I used: justify-content: space-between;. However, the middle stat ("Likes") doesn't seem quite on the center of the card, as I would expect it to be. Is there any idea on how I can improve this? Should I not use space-between?
  • Is my HTML structure okay? I didn't want it to be too complex since it is a simple component.
  • Also, because I divided the card into three different sections, I removed the classes for most elements as they can be easily accessed through the parent class. Is this a good practice?

I'm happy to hear any feedback and advice to help me improve!

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 sophie.'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