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

Blog Preview Card using HTML & Custom CSS Properties

Rafael•50
@rafaelgonzales612
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi all! Been learning front-end web development for a couple months, and I just have a couple questions regarding this challenge:

-I had trouble getting my card to be centered vertically. When I used margin: auto; it would still stay on the top of the page, and I don't want to hard code a top margin, how would I go about that?

-I was unsure of using @media screen and (min/max-width) in my CSS, I'm still familiarizing myself with responsive mobile-first design. What would be best practice for that?

Thanks for the help!

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