CSS not work on github pages

Hello eveyone,

I am new to github. I’ve been following tutoials etc on how to set up pages. Now, i’m trying to move my codepen HTML and CSS over here. HTML is working, but CSS is not being applied.

I’m obviously doing something wrong. But I can’t figure it out.

Thank you in advance fo any pointers.

The CSS works for me. If you can’t get it to work you’ll have to be more specific, saying “not being applied” could mean a dozen different things. Is the CSS loading but not applying to the element, is it not loading at all, is it giving an error when it loads, etc, etc.

It’s very difficult to give any advice as you don’t say what file you’re trying to load, what elements you are trying to apply CSS to, what the browser console shows about the CSS, etc.

I managed to restore the css, but now the links are not mine at all. After returning to the source code, css does not work again. CSS is not loaded exactly, it is in a special folder, but it is not loaded. Although everything is fine in the code in my opinion.

Console logs - GET index.ad78fe01.css net::ERR_ABORTED 404
whitetea1.github.io/:9 GET index.d070a3cf.js.%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0 net::ERR_ABORTED 404
:14 GET https://whitetea1.github.io/index_files/v2.14537f1f.png 404

Oh, I’m sorry. And although even thank you for hinting to look at the console. I didn’t have an index_files folder. Thanks

1 Like