Design comparison
SolutionDesign
Community feedback
- @FrostemanNeogardPosted over 1 year ago
Adding the following styling to your
<figure>
elements will place them in the correct positions, though you do need to changegrid-template-colums: repeat(5, auto)
togrid-template-colums: repeat(4, auto)
on your container.<main> <figure class="item" style="grid-column: 1 / span 2; grid-row: 1;">{...}</figure> <figure class="item" style="grid-column: 3; grid-row: 1;">{...} </figure> <figure class="item" style="grid-column: 4; grid-row: 1 / span 2;">{...}</figure> <figure class="item" style="grid-column: 1; grid-row: 2;">{...}</figure> <figure class="item" style="grid-column: 2 / span 2; grid-row: 2;">{...}</figure> </main>
You can add this styling via CSS or hard-code it into the HTML, though I would probably recommend the former.
Hope this helps!
Marked as helpful0@Hamza-NoahPosted over 1 year ago@FrostemanNeogard Thank you very much for this helpful solution
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