Design comparison
Solution retrospective
I am proud of how I got the site to look similar to the provided design. Next time I just hope to get there faster.
What challenges did you encounter, and how did you overcome them?I spent a while unsure if I should be using grids or flexbox and kept restarting trying to figure out this site with grids. Ultimately I settled on flexbox though I'm not sure if this was the correct choice!
What specific areas of your project would you like help with?Is it possible to do this with grids or was flexbox the right move? Also any help appreciated!
Community feedback
- @GAOV13Posted 5 months ago
Your solution looks a lot like the provided design, well done! :). To answer your question, you can use grids.
Think of a grid like a 2D matrix where you can choose how many positions of the matrix your item will use.
As an example, I did this in my solution:
.card-container { display: grid; place-content: center; grid-template-columns: repeat(3, 1fr); /* 3 equal columns / grid-template-rows: auto auto; / 2 auto rows / gap: 10px; / space between grid elements */ }
.card-container-item1 { grid-column: 1; grid-row: 1 / span 2; }
.card-container-item2 { grid-column: 2; grid-row: 1; }
.card-container-item3 { grid-column: 2; grid-row: 2; }
.card-container-item4 { grid-column: 3; grid-row: 1 / span 2; }
Marked as helpful1
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