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

Desktop Solution using CSS grid, flexbox and hover

shahjghst•40
@shahjghst
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?

Getting the design as close as possible to the provided figma file. Probably to help more with the spacing next time, to set the margin and padding to 0 in the body tag to help deal with spacing issues and remember to use a flexbox when dealing with inline elements that have whitespace between them.

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

Once again spacing was an issue and figuring out how to prevent whitespace from the h1 tag from triggering the hover function. Setting the main tag as a flexbox and setting its direction to column seemed to help with the spacing issues. The whitespace issue was resolved by just reducing the width of the h1 tag.

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

-Did I write semantically correct html?

-For my "Greg" id, was it good to use a 12px margin-right for the spacing?

-For my "name" id, was it good to use a grid and an align content to get it to center with the image at the bottom?

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