After completing a mock site project, I encountered an issue where the styling was perfect locally but did not show up once uploaded to my server and Github pages. Looking into the console, I found this error message:
Failed to load resource: the server responded with a status of 404 (Not Found) style.css Failed to load resource: the server responded with a status of 404 (Not Found) /favicon.png Failed to load resource: the server responded with a status of 404 (Not Found) reset.css Failed to load resource: the server responded with a status of 404 (Not Found) style.css Failed to load resource: the server responded with a status of 404 (Not Found)
Upon further inspection in DevTools, I noticed that in my "resources" directory there were two folders, CSS and CSS_reset, that do not actually exist. Additionally, the HTML references "css" instead of "CSS," causing a break in the styling. Here is a snapshot of my server's directory tree:
https://i.sstatic.net/H2BvD.jpg
Below is the HTML code referencing the CSS:
<link href="./resources/CSS_reset/reset.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.css" />
<link href="./resources/CSS/style.css" type="text/css" rel="stylesheet">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Monoton%7COpen+Sans:400,600,700" rel="stylesheet">
Here is the link to the Github repository:
https://github.com/pauljhollis/jumpstart
This is the first time I have experienced this issue after uploading multiple pages to both the server and Github. Any help or suggestions would be greatly appreciated.
Edit: Issue resolved. The code was altered without my knowledge, changing "css" to "CSS" and adding "CSS_reset" which does not exist on my computer. This change occurred unexpectedly while working on a different machine than usual. Thank you for the assistance and pointing out the mistake. It went unnoticed at first.