Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Responsive design using css flexbox

accessibility
Yeni•180
@YeniUvwo
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


my middle boxes kept getting squashed when scaling down between my screens

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • jumiranda5•280
    @jumiranda5
    Posted over 1 year ago

    Hi! I couldn't figure out why the middle column is shrinking more than the others... but have you tried using flex-grow: 1? w3 flex-grow

    Marked as helpful
  • P
    enzmrg 💫•920
    @enzo-mir
    Posted over 1 year ago

    Hello ! nice work, to avoid this "middle box squashed" try to set you section in grid as :

    • display : grid; grid-template-columns : repeat(3, 1fr);

    and set the grid-template-columns to 1fr at you breakpoint to get 1 column it will be more responsive friendly ! Well done ;)

    Marked as helpful

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
Frontend Mentor logo

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub