Solution 1 :

Change /css/styles.css to either ./css/styles.css or css/styles.css.

Solution 2 :

Changed my src to the full link, i.e
Instead of relative path

Problem :

I’m currently having issues publishing my subpage on github pages. The html file itself loads fine but I’m not sure exactly how to load the css and js files from the top (root?) directory. It’s the portfolio html under the portfolio folder and I want it to use the css and js from the top folder
The page
The repo


Comment posted by Narayan Shastri

Hi there, I tried this out and it didn’t work for me. It doesn’t move into the parent directory


Leave a Reply

Your email address will not be published. Required fields are marked *