CSS files not working on Github Pages
I deployed a design on Github Pages from a repo, but it seems like the main.css is not reading the two other css files (_fluids and _globals). How do I get this to work?
Repo:
https://github.com/AMarlonG/Intrinsic-fluid-web-design
Deployment:
https://amarlong.github.io/Intrinsic-fluid-web-design/
GitHub
GitHub - AMarlonG/Intrinsic-fluid-web-design: Intrinsic fluid web d...
Intrinsic fluid web design. Contribute to AMarlonG/Intrinsic-fluid-web-design development by creating an account on GitHub.
13 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Just updated it in VS Code and the repo (check the index.html) and still no change ...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you have to provide relative path for the CSS files
like
./css/main.css
as GitHub looks for the files in the current directory using relative pathsUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah, I had the same issue when I was still learning about GitHub😂
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
relatable🥹
... nope. Still no good.
😭
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Bam! There we go!
Removed the _, and put main last. Maybe both helped, but I do think it makes sense with main being last indeed.
Thank you guys! 🙌
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes, arrange those files in the same way you would arrange the css inside of them