0

Names of files

I put my HTML website on a USB chip so i could use it on my other laptop. it wouldnt let me go to diffrent links that i put in there. If i wanted to click on a login link (that leads to a diffrent note file) it wouldnt work on my other laptop, but it works fine on my original laptop i created it all on. Is there a way to fix this?

17th Jun 2017, 8:56 AM
Kaleb Wasierski
Kaleb Wasierski - avatar
2 Answers
+ 1
as I thought: absolute links. they always start with a protocol (http, https, ftp, file...) take a look at relative links, change them and it should work fine on your other laptop. relative links: let's say you have a index.html in your main directory. your stylesheets are in a subdirectory called css, your images are in img and there's another file next to the index file called contact.html add the stylesheets like: css/mystyle.css Link to the other file: contact.html (no path needed as they're in the same directory) path to background image in stylesheet: ../img/bg.jpg the path always starts at the file calling another file. so from your stylesheet you'll have to go one directory back ( ../ ) and then into the other directory. .. moves to the patent directory of the current directory.
17th Jun 2017, 12:11 PM
Mario L.
Mario L. - avatar
0
please show your code. maybe you used absolute links instead of relative links. but I'm just guessing...
17th Jun 2017, 10:48 AM
Mario L.
Mario L. - avatar