Fail code #51062
-
|
Everytime i try link to another folders file it fails. I tried everything even with / . Can anyone search my code and help me out? Link: Repository Link (Only search in folder v.0.1.4, or else its loose of time) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
hey, try linking the file with ../ for example if u want to access style.css (which is in css folder) in index.html(in home folder) then you may use ../css/style.css . Let me know if it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Hi Sebastian!It seems that you are trying to access files from directories that are not in the same folder as your HTML files, and the If your HTML file for example is located in a directory called In this example, the Generally speaking a relative path is a file path that is specified relative to the current file's location, instead of specifying the complete path from the root directory. So in your current code, the path |
Beta Was this translation helpful? Give feedback.
Hi Sebastian!
It seems that you are trying to access files from directories that are not in the same folder as your HTML files, and the
../notation is used to go up one directory level from the current directory.If your HTML file for example is located in a directory called
Home, and you want to access an image located in a directory calledPicat the same level asHome, you can use the following code to reference the image file:<img src="../Pic/Copy of Coral Adalo Logo - Made with PosterMyWall.png" style="width: 125px; float: left;">//This one is correct<img src="../v.0.1.4/Pic/Copy of Coral Adalo Logo - Made with PosterMyWall.png" style="width: 125px; float: left;">//This is the c…