Opening my html document directly on the browser without using XAMPP, the page displays correctly with the stylesheets, graphics and Javascript linked to externally in the html header link refs.
But open the page using XAMPP and localhost, none of the external directory links work? Stylesheets not applied, images not found etc. (unformatted HTML displays though)
My basic directory structure is :-
siteA
... /HTML (containing the index.html)
... /CSS
... /Graphics
... /Javascript
... /cgi-bin
(the dots above merely to emphasise the directories are within siteA)
NOTE: My main websites folder is under /home/<my user id>/Documents/WebSites/ so is completely external to the normal HTDOCS directory.
My stylesheet link reference within the header section is thus :-
I've tried coding "CSS/-->" and "/CSS/-->" and "../../CSS/-->" but to no avail.
HTML link to images are coded
Any ideas? I'm hoping I don't have to change too much, else it means a great deal of changes when uploading a site to a bona-fide web-server.
But open the page using XAMPP and localhost, none of the external directory links work? Stylesheets not applied, images not found etc. (unformatted HTML displays though)
My basic directory structure is :-
siteA
... /HTML (containing the index.html)
... /CSS
... /Graphics
... /Javascript
... /cgi-bin
(the dots above merely to emphasise the directories are within siteA)
NOTE: My main websites folder is under /home/<my user id>/Documents/WebSites/ so is completely external to the normal HTDOCS directory.
My stylesheet link reference within the header section is thus :-
<link rel="stylesheet" href="../CSS/clock.css" type="text/css" /> <link rel="stylesheet" href="../CSS/main.css" type="text/css" />I've tried coding "CSS/-->" and "/CSS/-->" and "../../CSS/-->" but to no avail.
HTML link to images are coded
<img src="../Graphics/image_1.png">Any ideas? I'm hoping I don't have to change too much, else it means a great deal of changes when uploading a site to a bona-fide web-server.
Last edited:

