Aiden
Aiden

Reputation: 319

styles.css resource not loading when on the server, works locally

I'm new to creating webpages, so perhaps this is really easy and I just can't see it. I have a HTML/CSS template that I am modifying for a new site. When I check the index.html file locally (in Dreamweaver or in browsers) it appears correct. When I uploaded them to the server then the website does not load the images and it appears that the styles.css file is not loading correctly. I have attached a few screenshots to get the ball rolling. As always thanks for your assistance.

index.html code

server folder structure

css folder structure

Desired Output: What it looks like locally

Current Output: What it looks like from the server

Upvotes: 0

Views: 112

Answers (1)

visibleman
visibleman

Reputation: 3315

This is likely (later confirmed by asker in comment) a file and directory access right problem. This can be verified by checking the access logs of the http server.

The solution is to update the ownership and permissions of any problem files so that the http server has rights to them. In this case, it is probably the easiest to examine the permissions of the index.html file and related folders and apply the same permission to the problematic files/folders.

Upvotes: 1

Related Questions