Design comparison
Solution retrospective
I have no clue why my bottom section is not centered equally.. Any suggestion is deeply appreciated :)
Community feedback
- @KaasfeetjePosted over 2 years ago
Instead of using 'grid-columns:2;' on your container use 'grid-template-columns: 1fr 1fr;'. This makes it so both columns are the same size.
Marked as helpful1 - @LucianoDLimaPosted over 2 years ago
Good job on finishing the project!
You can center them equally by using
grid-template-columns
instead of justgrid-columns
. Then you can use thefr
unit. So if you swap yourgrid-columns: 2
forgrid-template-columns: 1fr 1fr
you'll see that each section will take half if that makes sense.Happy coding
Marked as helpful1 - @SurgetinPosted over 2 years ago
Oh I see now, thank you guys. :) I updated so it seems good now :)
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