Fix Folder Problems with HTML/CSS/JS projects

Have you ever had problems with a Html, CSS and JS projects where some code just doesn’t work whatever you do? Well it’s probably to do with the fact that for files are in the folder when they shouldn’t be or not in a folder that they should be in, so if I had a folder called example with my image which is called example.png then to show the image on the webview rather than just putting background: url("example.png"); you need to do background: url("/example/example.png") to actually display the image to screen. Thanks to @NoNameByProgram for helping me when I had this problem and didn’t know what to do. Also the concept of /(folder name)/ before the file name can be used for files like style.css as well. Thanks for reading.

Was this Helpful?

  • Helpful
0 voters