Maxim Ivanov2020-11-22 14:26:58
Maxim Ivanov, 2020-11-22 14:26:58

404 error for font and background-image on github pages. Why?

Everything works fine on local host, but not on github pages... Who knows why? the Repository
page itself

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Anton Litvinenko, 2020-11-22

Obviously, you are writing the wrong paths. You inline the styles, and on the way write to raise it one level up. Remove ../

Maxim Ivanov, 2020-11-22

maybe in this case it's better to do not background-image but just img? so that everything is ok on the locale both on the github itself and then on the hosting?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question