My CSS not being applied in 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 for any pointers.

Laura

Paths/file name are case sensitive.

Hi there.  :wave:

As @kingthorin mentioned, files and paths are case-sensitive in GitHub pages.

Meaning, to get your CSS to work you need to change your <link> to.

<link rel="stylesheet" type="text/css" href="STYLES/STYLE.CSS">

Or another way is to lowercase the directory name and file name.

Hope that helps. :+1:

2 Likes