
Solution retrospective
I do not know why my background image is not showing on live web. It is actually showing on the local server (live server). Any help on how to correct this will be highly welcome. Thanks.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @luismadf
Hello Faruk,
Congratulations on finishing this challenge! 🎉
The image isn't showing because a path problem, for some operating systems a path like this "/images/image.svg" it's ok, but for other isn't (for example the ones that we use to upload our websites).
To fix this, it's as simple as adding a dot (.) at the beginning of your image path. This indicates that the path should be relative to the current directory, making it more universally compatible across different operating systems.
/* Layouts styles */ .background { background-image: url('./images/background-pattern-mobile.svg');
Marked as helpful
Join 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