Design comparison
Solution retrospective
I had an issue removing the white border underneath the image, then I had to remove IMG tag from the div for it to appear the same as the screenshot.
Community feedback
- @klara367Posted about 2 years ago0
- @elaineleungPosted about 2 years ago
Hi Fortune, I think you did a great job here! About the white border, I'm not sure what you mean, but if you're talking about the white space that appears when you resize the window and make it smaller, you can get rid of that by adding
height: 100%
andobject-fit: cover
to the image. You can also try adding a bit of margin around the component so that there's some spacing around it when it's being resized to a smaller size.My only comment here is, in the star selector, you have both the secondary and primary font families. That doesn't actually add the font families into all your elements; what is happening here is, you had
font-family: "Fraunces", serif;
listed first, and so every element would be in the Fraunces font, but then you followed that line withfont-family: "Montserrat", sans-serif;
which overwrites the font family before that as if it was not there. Generally, there should not be repeated properties in a selector (meaning that font family here should not be repeated), and also, the primary font family should go in the body selector usually, not the star selector. The secondary font family can be added to the various places that need it.By the way, I notice that you started with the desktop view first in your solution. See whether you can try a mobile first approach in later projects and compare the difference. Anyway, great work over all, and good luck in fixing the white border!
Marked as helpful0@meesuaPosted about 2 years ago@elaineleung Hi Elaine, thank you for the review and feedback. I have noted all corrections here, I will apply them ASAP and also going forward.
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