Home > Net >  I hosted my site on Github - CSS does not working. Failed to load resource: the server responded wit
I hosted my site on Github - CSS does not working. Failed to load resource: the server responded wit

Time:02-05

enter image description here

I hosted my site on Github. And noticed that css file doesn't work. Please help fix this problem.

website

Github repository link

I have checked links from html to css. Presumably it's not correct, but I don't know where is mistake.

CodePudding user response:

The CSS directory is uppercase, so your path needs to be uppercase to reflect that.

Working: https://mojjo2016.github.io/CV/CSS/styles.css.

Not working: https://mojjo2016.github.io/CV/css/styles.css

CodePudding user response:

Your folder is uppercase but you referenced lowercase.

CodePudding user response:

Your HTML code tries to import the css file as such:

<link rel="stylesheet" href="css/styles.css">

hoewever, your folder is all uppercased (CSS), thus it has to be as follows:

<link rel="stylesheet" href="CSS/styles.css">
  • Related