Hello all-
I have been having issues getting images to appear in my CSS code. Just found out that windows uses "" in the paths for my files instead of “/” and I cant change this. Has anyone gone through this before and have a work around?
—EDIT----
If anyone comes back to this having the same issue, I found the solution on this discussion ;
@asurasnyx ,
It looks like the problem is that you are using the backslash (\) in your path. In many languages (including CSS, I believe) this character is what is known as an escape character. You can tell by the way it is a different color in VS Code in your screenshot.
To make that path work, there are a few things you can do:
You can replace your backslashes with forward slashes (/). Notice that in @sonnynomnom ’s reply, he recommended ./ and not .\.
Alternatively, if you really love th…
Do you have an example of your code to post?
here is the code with the background image url that i fixed;
this is what my path looks like with just copy and past in visual studio;
Is the issue resolved if you just type in the url rather than copy+paste?
unfortunately no.
its because the windows paths have the wrong slash. Found a solution though that i just have to add a second slash and it works
1 Like
system
Closed
November 9, 2022, 2:34pm
6
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.