Design comparison
SolutionDesign
Community feedback
- @denieldenPosted over 2 years ago
Hi Yehan, great work on this challenge! 😉
Here are a few tips for improve your code:
- add
background-size: contain
to body for fix the top image - use
img
element for the image isteaddiv
- remove all
margin
fromcontainer and card
class because with flex they are superfluous - use
justify-content: center and align-items: center
flexbox properties to the body to center the card. Read here -> best flex guide
Overall you did well 😁 Hope this help!
Marked as helpful1@Yehan20Posted over 2 years ago@denielden thanks for the tips , especially on the image on the body.
1 - add
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