
Responsive page using Media Querry and CSS Grid
Design comparison
Solution retrospective
I had difficulty using CSS Grid and the responsivity
What specific areas of your project would you like help with?I would like an overview of my project, especially regarding its responsiveness and the CSS Grid.
Community feedback
- P@Oliko136Posted 2 months ago
Hello!
Your solution looks good, very similar to the design!
A note regarding semantics - it's better to use unordered list to group the cards and treat every card as a list item, as they are basically the same entity and are all interconnected. The article tag should be used for content that can make sense by itself, outside of the context of the page.
Also, it is best to give the cards a common class name and apply all the common rules to it, and then just add the border color to a specific card using its specific class name. It will remove repetition and make your code cleaner.
As for the grid, you applied it well, but for the sake of your convenience you can use the grid-template-areas property (applied to a grid container) along with grid-area property (applied to each grid item) - https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas.
I hope it helps and good luck in your future projects!
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