Design comparison
Solution retrospective
This project made me learn Grid Layout more thoroughly. Though it was little difficult for me to understand the grid's different properties still I am really glad that I took this project and completed it.
Community feedback
- @zeerobitPosted over 2 years ago
well done on completing this challenge, however i have a few remarks:
- use more semantics in your html than just div.. look into
figure
,figcaption
andblockquote
which are more suitable semantics for this challenge. Basically each card should be wrapped with thefigure
tag instead of div, the photo along with the name and title should be wrapped infigcaption
and the paragraphs inblockquote
. - You should research about grid-areas as it would be a lot easier for the desktop layout, you would use a lot less code. Here is an example of the code for my grid desktop layout:
display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 1.2rem; grid-template-areas: "card1 card1 card2 card5" "card3 card4 card4 card5 "; }
hope this helps, happy coding
1@ritik48Posted over 2 years ago@zeerobit Thank you so much for reviewing my code, and yes I mostly use div's to pack items as I am not much aware of the semantics but will definitely research about it. And I didn't know about grid-areas , I just looked into and it is really great in displaying elements in different layouts.
0 - use more semantics in your html than just div.. look into
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