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

Flex and CSS Grid responsive preview card

Lisa T•40
@lisacodesnow
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I found putting a color on top of the photo the hardest but was able to fix by wrapping the image in another div and giving that div a background color. I had a hard time making the photo and business card info the same height in desktop. I used grid and set the height and width to 100% and fixed it.

Overall, this was a fun project and was proud that I fixed some problems that I was having.

If anyone has the time to look at my code do you have any advice as a way to come up with the same solution differently? Or by writing shorter code? Thank you.

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 Lisa T'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