Profile card component using HTML, CSS, Bootstrap, Sass
Design comparison
Solution retrospective
I'd like to know how to add two background images at the same time.
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Oak Soe, Congratulations on completing this challenge!
I've just opened your live site and I can say that you did a great job putting everything together! There's some tips to improve your solution:
To add the circles (bottom/top) in the background, the best way is by using
background-image
to manage it since adding them to thebody
you make sure it will be under everything, see the properties below and see that the comma inside each properties declare the single modification for each circle separated.body { background-color: hsl(185deg, 75%, 39%); background-image: url(../images/bg-pattern-top.svg), url(../images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: top -403px left -400px, bottom -473px right -136px; /* background-color: hsl(185deg, 75%, 39%); */ /* background-image: url(../images/bg-pattern-top.svg); */ /* background-attachment: fixed; */ background-repeat: no-repeat; /* background-position: left; */ }
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @OsEm-22Posted about 2 years ago
Thanks for your explanation,sir. It's very helpful. I am wondering if bg position: top -... px,left -... px) works on ever screen size. I'm not very good at making responsive web.
0
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