Design comparison
SolutionDesign
Solution retrospective
my middle boxes kept getting squashed when scaling down between my screens
Community feedback
- @jumiranda5Posted 12 months 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-growMarked as helpful0 - @enzo-mirPosted 12 months 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
to1fr
at you breakpoint to get 1 column it will be more responsive friendly ! Well done ;)Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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