1

I read different questions on stackoverflow regarding this issue but i haven't got any solution for my case, the rest of my pages are displaying css well, but index.html doesn't display. But surprisingly when i run my project locally it works very well.

What am i missing?

My github pages link :

https://huxaiphaer.github.io/-Ride-My-Way/index.html

My github project link , in the branch gh-pages:

https://github.com/huxaiphaer/-Ride-My-Way/tree/gh-pages

1
  • Reference your file from the root. You may have to change your reference before moving from local. Commented Jun 13, 2018 at 8:06

1 Answer 1

2

Your href was wrong for your css import. You were navigating up more folder.

<link rel="stylesheet" type="text/css" media="screen" href="UI/css/index.css">
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks @TobiasGeiselmann , but still my question stands , why is it working locally in the previous structure.
That depends on what your file structure looks like. I guess it's not exactly the same on your local machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.