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

Blog preview card

Zugim•80
@Zugim
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 was pleased that I was able to implement fonts responsively using rem units and media queries. When the viewport's width is less than 300px the font size for the component will decrease slightly. While not really necessary for this particular project it will hopefully come in handy for future projects.

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

I encountered some weirdness when styling my header, which is a link nested inside a h2 element. I was originally trying to style the h2 element but the font wasn't displaying as expected. I did some research and discovered I should instead style the nested element.

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

I was wondering if people usually use rem/em units project wide or is it primarily for fonts? I was thinking they could also be useful for padding and margins.

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