Skip to content

Stylesheets not working in Github Pages #22659

Answered by Gisgar3
ghost asked this question in General
Discussion options

You must be logged in to vote

Hey, welcome to the GitHub Support Community! I’ve noticed that in your CSS stylesheet and JS script you’re calling each starting with assets/ instead of ./assets/; ./assets/ will ensure that you’re first defining the current directory and then moving onto the next directory.

To call your JS script, use <script src="./assets/js/script.min.js"></script>. To call your CSS stylesheet, use <link rel="stylesheet" href="./assets/css/styles.min.css">.

Hope this fixes your issue. If you have anymore trouble, don’t hesitate to reply back!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants