Design comparison
Solution retrospective
Please I need help this is the second time that happened to me, the background images are not visible on the GitHub page but I have written the URL correctly(I think...). Please help I don't know how to fix it. it's this one basically. Neither of them work.
background-image: url(/assets/img/bg-pattern-top.svg), url(/assets/img/bg-pattern-bottom.svg);
background-image: url(assets/img/bg-pattern-top.svg), url(assets/img/bg-pattern-bottom.svg);
Community feedback
- @markuslewinPosted 12 days ago
If the path is relative to the root, you have to include the
Profile-Card
part as well. If the path is relative to the current directory, it's relative to the directory of the CSS file.Both of these should work:
body { background-image: url(/Profile-Card/assets/img/bg-pattern-top.svg); background-image: url(../img/bg-pattern-top.svg); }
Marked as helpful0@cgeguizabalPosted 11 days ago@markuslewin IT TOTALLY WORKED!!! Thanks a lot!!!
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