Design comparison
SolutionDesign
Community feedback
- @BT453567Posted 5 months ago
Hello there
Good effort
Another way to center the solution in the middle of the page would be the following:
body { display: grid; place-items: center; min-height: 100vh; }
Also your image appears to have lost its aspect ratio. Try changing the height to auto:
.pic img { width: 100%; height: auto; border-radius: 10px; }
Hope that if of some use
Regards
Marked as helpful0
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