Home > Software engineering >  Why does the Github pages doesn't use my css archive?
Why does the Github pages doesn't use my css archive?

Time:09-10

i'm trying to land my page at github pages but it is not recognizing my css file. I've tried changing the names, rearranging the folders and it still doesn't work. Does anyone know what can I do?

my github project: https://github.com/barbmariana/resilia-project1

Tried change de folders names, tried put the css file at the main folder...

CodePudding user response:

Your index.html file is on the same level as your css folder. You'll need to remove ./ from ./css/style.css and you should be fine.

CodePudding user response:

EDIT: I just checked it out and it looks like the CSS is loading. Your github page

If you change your CSS link from

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

to

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

I think your css wil work, happy coding!

  • Related