Design comparison
Solution retrospective
Thanks for all the valuable feedback, I learned a lot with this challenge. Awsome !
Community feedback
- @aepostenPosted almost 2 years ago
The gap below your image is because your image is rendered as an inline element by default. If you change the display property of the div it's nested in (the one with class of main-img), it will remedy this. This article on Geeks for Geeks does a great job of explaining why this happens: https://www.geeksforgeeks.org/how-to-get-rid-of-the-gap-under-the-image/
Marked as helpful2 - @SinisaVukmirovicPosted almost 2 years ago
Hello!
About your questions:
1.Thats how the web works since its creation. More about it and how to fix it
2.If I understand you correctly, its aligh-items, not justify-items. But, in order for it to work, you need to have 2 elements. Right now, you have an image and just text, text is not an element, its just a node. Wrap text in an element.
Hope this helps!
Marked as helpful0@elsgoossensPosted almost 2 years agooh my, so simple to fix with only the right information. Thank you very much.
1
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