Design comparison
SolutionDesign
Community feedback
- @KonstantinchristPosted almost 2 years ago
Hi @hitch95, here is a solution for your problem.
Give your main a
display: grid;
andgrid-template-columns: repeat(2, 1fr)
. This gives the grid two columns for every row.Give your
id="one"
itemgrid-column: span 2;
and this says that theid="one"
item is 2 fractions wide.1fr = 1 fraction
If you have more questions about grid, just ask. Hope it helps!
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