Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 4 years ago

Responsive 3-column preview card component without media queries

Māris•250
@marisudris
A solution to the 3-column preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I used Heydon Pickering's Flexbox Albatross solution for making a responsive component without using media queries. Just out of curiosity are the any similar ingenious solutions for different problems, or do we basically have to wait for container queries to arrive?

One other question would be about spacing - is it generally acceptable to tweak the outer spacing for text and/or heading elements using line-height - since half of the line-box height for the first and last line does seem to contribute to visual spacing alongside paddings and margins (or gap in my solution), if there are no borders around text?

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 Māris'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