Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Responsive blog preview card using media query

sass/scss
Cynthia•50
@tina4449
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 think I am improving my understanding of using flex to layout elements compared to the last practice. Next time, I should consider more situations in terms of responsive website design.

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

I struggled with resizing the image initially. However, upon closer examination of the design, I realized that it wasn't resizing the picture but cropping it instead. I then searched online for how to crop images, and things started to go smoothly.

What specific areas of your project would you like help with?
  1. I am not sure whether the usage of the CSS "display" attribute is correct, or if I should not declare it as many times as I have done now.

  2. The responsive design using media queries had some sizing issues under 375px. I'm not sure if this is because I didn't style another design or if there's something wrong with my code.

  3. When the screen width becomes 414px, although the card itself has been vertically centered, because of the shadow, the card doesn't appear to be centered. Is there a way to visually center the card with the shadow?

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