Home > Mobile >  Everything on my pages works fine on VScode's live server but not on local
Everything on my pages works fine on VScode's live server but not on local

Time:05-15

When previewing my pages with a live server everything works fine. but when I tried to open my index file from local it didn't show CSS or anything. and when click on navigation that links to another page it shown "File not found"

CodePudding user response:

first of all, please provide code with your question. Second of all, I had this once happening to me, I fixed it by changing (this is an example) /CSS/style.css to ./CSS/style.css So you basically put a dot in front of it. Please let me know if this helps.

  • Related