Design comparison
SolutionDesign
Community feedback
- @IryDevPosted about 1 year ago
Hey @subha-2001 Great to see you tackling this challenge. 😊
I have some advice in order to improve your solution :
- remove the default margin and padding of the body with padding: 0; and margin: 0;
- your hero image seem to not take the place of your grid
- you can correct that by adding the properties height 100% width 100% and object-fit cover to make the hero img correctly centered
CSS :
body{ margin: 0; padding: 0; } img.hero{ height: 100%; width: 100%; object-fit: cover; }
I hope you'll find this helpful, Best of luck, and happy coding! 💪🚀
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