CSS isn't working on my website

Website URL

renyaguirre.xyz

Error Message

There is no error message. The CSS doesn’t seem to be rendering

Other Information

Has anyone an idea on how to fix this?

Hey there, try adding a forward slash before the css link path.

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

3 Likes

Hi!

Very simple. In your code, you appear to refer to style.css, but when the browser tries to load it, it says it doesn’t exist. This means that you have either incorrectly named it in the code or you named the stylesheet incorrectly.

2 Likes

It seems that your file either does not exist with the name you provided or in a default path. Have you put it in a folder?

1 Like

Yesterday I uploaded the css file on the general directory (same as the html). But today it was gone. I re-uploaded it now and I added the suggested forward sash, but it is still not working. Any other suggestions, please?

How big is your CSS file? Make sure to simply name it as style.css and nothing else.

Clear your cache, it works fine for me. It should work even without the slash.

7 Likes

The css file is 4KB.

It’s not working for :sweat_smile:

That’s strange. I tried two different DNS resolvers on Chromium and even hopped on Tor, and it works fine for me.

4 Likes

It works on Chrome, not on edge that’s strange

1 Like

Thank you so much to everyone, that got resolved!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.