Design comparison
Solution retrospective
So this was an interesting challenge! I couldn't figure out how to do the background images properly. Any advice there would be much appreciated.
I got the profile image in the position I wanted it, but I'm not sure it's the right way to do it.
thank you so much! ✌️
Community feedback
- @EileenpkPosted almost 2 years ago
Hi Nour, your project looks good.
To have multiple background images in CSS you use comma-separated values. The images are stacked on top of each other, where the first image is closest to the viewer.
This CSS should fix the images for you.
body { background-image: url(./images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg); background-position: left top, right bottom; background-repeat: no-repeat, no-repeat ; }
You can also use the background shorthand property
body { background: url(./images/bg-pattern-top.svg) left top no-repeat, url(./images/bg-pattern-bottom.svg) right bottom no-repeat; }
Here is a link that goes into multiple backgrounds in CSS. https://www.w3schools.com/css/css3_backgrounds.asp
Hope you found this helpful!
- Let's connect on LinkedIn! - @Eileenpk
Marked as helpful0@nalosmanPosted almost 2 years ago@Eileenpk
Hey! thank you so much for the comment. went back and did some reading and updated it.
I appreciate the help!
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