Click here to Skip to main content
15,867,783 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I am trying to style my html page but the css file isn't connecting to it for some reason. When I inspect the file it says theres and error and that the file doesn't exist even though it does and it has a folder with it in it, additionally its the only styles sheet I have. When I inspect it here is what it says "The file "stvles.css" couldn't be opened because there is no such file" and yes styles.css is the name of the file I have checked so many times.

What I have tried:

I tried creating new style sheets and I tried starting over.
Posted
Updated 27-Nov-22 23:28pm
Comments
Graeme_Grant 25-Nov-22 16:36pm    
No code = no way to help debug. Open dev tools, go to the network tab, and check to see if there are no errors.
Member 15627495 25-Nov-22 16:57pm    
it's a wrong 'path'.

when the css file is in the same location , the filename.css is enough.
but through another folder you have to mention the folder/filename.css as 'path'.

1 solution

Quote:
The file "stvles.css" couldn't be opened because there is no such file
...
yes styles.css is the name of the file
The error clearly states that the file you're trying to import is not the same as the file you've created.

You're trying to import stvles, but your file is called styles.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900