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

Responsive Blog preview card using flex box and clamp()

nunu114•100
@nunu114
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 learned how to use Flex Box and Rem units once again. It's still hard, but I'm slowly understanding how to use them effectively. I also learned how to make a responsive font size without using a media query. I used clamp() instead. Even though I'm still not comfortable using the Rem unit, learning a new technique that uses that unit is quite fun. I know there may be a better way to do this, but I'm happy that it works.

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

The author's profile image doesn't want to center align vertically within the div. It even overflowed outside the container! It turns out I need to set the margin of the image to 0.

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

Is there a better way to make a responsive font size without using a query other than clamp()?

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