Design comparison
Solution retrospective
Happy I was able to use grid to get the layout somewhat resembling the intended design.
What challenges did you encounter, and how did you overcome them?n/a
What specific areas of your project would you like help with?Found it difficult to figure out how to size the relevant cards and how they should be positioned using grid. I ended up having to use margin to get them into the desired positions but not sure if this is the best approach since grid is being used.
Community feedback
- @LaytixPosted 3 months ago
Good job on making it look good on the desktop, though there are issues with how it looks on any viewport smaller than 768px.
Looking at your code putting the titleCard div in the same div as your grid just increases your headache. Put it outside so that all that you're dealing with would just be the card1-4.
For the grid, you went with a 6(col) by 3(row). I would advise 3(col) * 4(row) instead, would make it easier to place supervisor and calculator in the middle, and learn about grid-areas. Trust me grid-areas would make your life way easier.
In viewports less than 375 just plug this
@media screen and (max-width: 376px) { main{ grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); } }
Youre doing fine mate, just need to responsive.
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