Design comparison
Solution retrospective
Hi, everyone. I successfully completed the challenge, but I had a bit of trouble properly positioning my divs. I'd really appreciate any tips that has made it easier for you. Thank you!
Community feedback
- @JayDeeZzzPosted over 2 years ago
Yeah! Nice try :)
Try to fix the background issue using " background-repeat-y: no-repeat; " and add the background color as "background-color: hsl(225, 100%, 94%);"
Peace ☮✌
Marked as helpful0@KhairanADijiPosted over 2 years ago@JayDeeZzz Thank you so much! That really had me stumped. Note taken.😁
0 - @EmmanuelHexerPosted over 2 years ago
Great work overall man. Keep it up
A tip i can give you it to always add an alt attribute to your images.
Marked as helpful0@KhairanADijiPosted over 2 years ago@Phalcin Thank you! I always forget to do that. I'll make sure to do so next time.
0 - @denieldenPosted over 2 years ago
Hi Khairan, good job! Congratulations on completing the challenge.
I have some advice for you:
- add
main
tag and wrap the card for Accessibility - try to remove all
margin
fromentire
class - use flexbox to the body for center the card. Read here -> flex guide
- also set
heigth
of body to100vh
because Flexbox aligns to the size of the parent container.
In the end for fix the top image in the background just put more specific background properties:
background: url("../img/pattern-background-desktop.svg") no-repeat top center; background-size: contain; background-color: #e0e8ff;
Hope this help ;) and happy coding!
0 - 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