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

Responsive Blog Preview Card Without Media Queries

sass/scss
Paulo Wells•530
@wellspr
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've achieved the project's goal of recreating the given design as closely as possible, producing responsiveness without using media queries.

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

The challenge was to think of a clever way to adjust the font sizes for different screen sizes without using media queries. There is a way of creating responsive text by adding a percentage of the viewport to a fixed width, but there is also a CSS function called clump which admits a minimum, a maximum and a desired value. I used this function for the first time in this challenge, both for the font sizes and for the card width, achieving, I think, the desired responsiveness.

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

I'll be glad to hear about any other ideas for tackling the no-media-queries challenge! I would also love to get your feedback on my solution. Thank you!

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 Paulo Wells'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