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

Blog Preview Card using HTML and CSS Flexbox

Jeff Hensley•80
@jeff-hensley
A solution to the Blog preview card 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?

I am very proud that I am starting to get a grasp of flex box. In the first project I was struggling a lot with centering things and making them line. I am not really sure what I would do differently however any feedback is very welcome! Also figuring out how to make use of Figma was a massive help.

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

The main challenge I had was aligning the text to the left correctly and figuring out the margins to be proper even while using Figma. I am sure there was an easier and cleaner way to write the CSS to do what I needed however what I came up with ended up working.

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

I also had a challenge with the yellow background around "Learning". I couldn't get it to easily center even when using flex box. I had to adjust the padding to make it look right which i felt wasn't necessary but I could not figure out what I was doing wrong.

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 Jeff Hensley'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