'Everything on my pages works fine on VScode's live server but not on local
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"
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Daan Teppema |