Design comparison
SolutionDesign
Solution retrospective
I love CSS Grid. I wanted to use Grid-Template-Areas. Any feedback and ideas are appreciated. 🙂
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
COMPONENT MEASUREMENTS 📐:
- The
width: 100vw
property forbody
is not necessary. because it's a block level element which will take the full width of the page by default.
- So feel free to remove
width: 100vw
style rule frombody
this will help you to write efficient code and makes your code more reusable.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@craigdev937Posted over 1 year ago@0xAbdulKhalid - Hi Abdul, thanks for the tip. 😉
0 - @tinuolaPosted over 1 year ago
Nice work @Craig! This is a good project to practice with Grid.
A few tips:
- Setting 'grid-template-rows: 1fr' on the body will center the component vertically
- The 100vw width declaration on the body is not needed--the body is that by default
- The second display:grid declaration in the media query for the container class is not needed since grid has already been declared prior
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