Hi, I have been trying to deploy my first site on Netllifiy but my Javascript and CSS files are not showing. I deployed from Github and they both work locally. What could I be doing wrong? Can anyone help, please?
Hey @Ogebaby10
If you can provide the link to the site, and to the GitHub repository, I am happy to have a look.
Here is the link to the site
https://fluffy-mooncake-b34d98.netlify.app/
And the GitHub repository?
Thanks @Ogebaby10
This line from the index.html
is the issue
<link href="CSS/index.css" type="text/css" rel="stylesheet"/>
The CSS file is not in a directory called CSS
it is in the same directory as the index.html
file. Ergo this tag should read
<link href="index.css" type="text/css" rel="stylesheet"/>
Also this meta tag
<meta name="viewport" content="width=
, initial-scale=1.0">
is invalid and should read
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Thank you. I will let you know once it works.
Thanks a lot Coelmay. It worked like a charm!