Design comparison
Solution retrospective
I have a issue with background image. In Visual Studio everything working well and picture shows properly. After publish on github pages image not showing.
Community feedback
- @StrocsPosted about 2 years ago
Hello Marcin, Great Solution! gratz!
I was looking at your code and this is your problem:
body{ background-image: url(../images/pattern-background-mobile.svg); }
that means your link path is looking one folder up, try this:
body{ background-image: url(./images/pattern-background-mobile.svg); }
./ :- This delimiter points to the parent folder of the current working file. It gives access to all the files and folders in the parent folder of the current working file. Let us look at another project structure.
../ : This delimiter points one folder up the parent directory/folder of the current working file i.e it points to the parent folder of the parent folder of the current working file. More like to the grand parent folder.
Source: Understanding File Paths
Hope will be useful, Cheers!
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