Design comparison
Solution retrospective
Hello everyone š, I did this project to put my knowledge into practice. I used Flexbox to align the elements, but when aligning on mobile devices, the elements in the center do not fit the size of the other elements. š¤ I'd really appreciate it if you could help me with that. Leave me a comment or make me a Pull Requests on my Github. š Thanks
Community feedback
- @pikapikamartPosted over 3 years ago
Hey great work on this one.
Regarding your query, if what you are trying to achieve is that making all the elements be centered, then what you could have do is that, instead of relying in
flex-wrap
, well it works but, as you notice you created a container for the two other blocks, which is the center right. To make all the elements be centered, addflex-direction: column
in your main tag in amedia
breakpoint, that way they will all be centered properly ^^0@erickcernaPosted over 3 years ago@pikamart Thanks man, I will review my code to solve that bug...
0
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