HTML, CSS

Solution retrospective
Thanks for all the valuable feedback, I learned a lot with this challenge. Awsome !
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@aeposten
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 helpful - @SinisaVukmirovic
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 helpful
Join 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