My css isn't working, why? Here is the link I used to the directory <link href="css/styles.css" rel="stylesheet"/> | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

My css isn't working, why? Here is the link I used to the directory <link href="css/styles.css" rel="stylesheet"/>

Index.html and css folder are in the same folder

11th Mar 2022, 6:10 AM
Musoke Yassin
Musoke Yassin - avatar
4 Réponses
+ 2
Can you save a copy of the code in SoloLearn? Make a new Web code, paste the content of index.html in HTML section, and content of styles.css in CSS section. Save the code, and share its link in your post's Description, following this guide https://www.sololearn.com/post/75089/?ref=app
11th Mar 2022, 6:59 AM
Ipang
+ 1
You should try and see if it works with the style sheet in the same folder as index.html
11th Mar 2022, 6:23 AM
Raul Ramirez
Raul Ramirez - avatar
+ 1
Location of the CSS file is a thing, whether the CSS file has no fault in its content is another. I asked you to share a saved a copy of the code in order for the others to be able to check the HTML & CSS file content, in case of the latter possibility. Another possibility is the browser might be loading a cached version of the CSS file. Try to bypass the cache system by force reloading the page https://www.wikihow.com/Force-Refresh-in-Your-Internet-Browser But to be more certain this was a path related issue, it is better to share your code link.
11th Mar 2022, 3:43 PM
Ipang
0
I want to link the css file which is on my internal storage folder
11th Mar 2022, 7:27 AM
Musoke Yassin
Musoke Yassin - avatar