@Kaasfeetje
Posted
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 helpful
Looking to hire developers?
I have no clue why my bottom section is not centered equally.. Any suggestion is deeply appreciated :)
@Kaasfeetje
Posted
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 helpful
@LucianoDLima
Posted
Good job on finishing the project!
You can center them equally by using grid-template-columns
instead of just grid-columns
. Then you can use the fr
unit. So if you swap your grid-columns: 2
for grid-template-columns: 1fr 1fr
you'll see that each section will take half if that makes sense.
Happy coding
Marked as helpful
@Surgetin
Posted
Oh I see now, thank you guys. :) I updated so it seems good now :)
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