Issue
I am coding my own website using html and css but when I uplaod my files from my code editor (Visual Studio Code) to my hosting platform (Hostinger) my style.css completely breaks! I have a plugin in Visual Studio Code to test my code before I upload and everything looks fine! I copied and pasted all my code from the code editor's version of style.css to Hostinger's version of style.css yesterday and that worked but today it did not. My style.css file is so long which is why I did not show you my code but if you request I will show my code.
Solution
In your html you may have used ./styles.css
locally, but on a server you need to use /styles.css
<link rel="stylesheet" type="text/css" src="/styles.css">
Answered By - Sydney Y
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.