CSS Grid layout

Solution retrospective
I have used grid-template-areas but now its not working.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @byronbyron
Hey @jillpandya2594, Hopefully this fixes your grid!
.container { margin: auto; max-width: 40rem; padding: 2em; display: grid; grid-template-rows: 1fr 1fr; grid-template-columns: 1fr 1fr; } main { padding: 2em; background-color: #fff; grid-column: span 2; align-self: flex-end; } section { display: flex; flex-direction: column; padding: 2em; background-color: hsl(179, 62%, 43%); } aside { padding: 2em; background-color: hsl(180, 62%, 47%); line-height: 1.6; }
- @jillpandya2594
How can I make this more close to the design ? Why cant I view the two columns here?
- @jillpandya2594
Why does the it not look like grid layout in the final version? Even though I made it grid
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