Reputation: 137
I have a webpage with 10 subpages, which use the same basic HTML and CSS.
The first 5 pages have this code in the <head>
section:
<link rel="stylesheet" type="text/css" href="./MainConfig/MAINCSS.css">
<script language="javascript" src="./MainConfig/Copyrights.js"></script>
<script type="text/javascript" src="./JS/CL.js"></script>
...and the other 5 have the same:
<link rel="stylesheet" type="text/css" href="../MainConfig/MAINCSS.css">
<script language="javascript" src="../MainConfig/Copyrights.js"></script>
<script type="text/javascript" src="../JS/CL.js"></script>
However, the CSS is not working. Strangely, many people have had the same problem. Despite searching css not working in gitwebpages, the only results I have found were about mistyping the location or using \
insted of /
.
The JavaScript is working fine but the CSS is not. Also, it works fine in localhost.
Any thought on this? Thanks in advance!
Root
|
+----- readme.md
|
+----- index.html
|
+----- GrLang
|
+----- EnLang
|
+----- img
|
+----- JS
| |
| +----- CL.js
|
+----- MainConfig
|
+----- MAINCSS.css
|
+----- Copyrights.js
Failed to load resource: the server responded with a status of 404 (Not Found)
Upvotes: 1
Views: 79
Reputation: 137
I have contact the support and the code was correct, although there was server-side problem which the support fixed.
Thank you guys for taking time to help !!!
Upvotes: 1