I need help linking my CSS file to my html #121132
-
Hi! I've just started using Github and I tried uploading my code and my CSS is not linked to the HTML! (which works when i first typed it out in Visual Studio Code). https://trinipose.github.io/Prueba-1stDelivery/ |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
After checking I did see some difference in the
|
Beta Was this translation helpful? Give feedback.
-
Add this code in the head section |
Beta Was this translation helpful? Give feedback.
-
You can link the file using a relative link. Here is the code: <link rel="stylesheet" type="text/css" href="./style.css" /> This does not link to your |
Beta Was this translation helpful? Give feedback.
-
To add your own <link rel="stylesheet" type="text/css" href="./path/to/your/file.css" /> Hopefully this answers your question, and possibly that from others too! In your case <link rel="stylesheet" type="text/css" href="./style.css" /> |
Beta Was this translation helpful? Give feedback.
You can link the file using a relative link. Here is the code:
This does not link to your
Style.css
repo but to the css file in thePrueba-1stDelivery
repo, I hope this helps you.