i'm trying to import a ccs file in hmtl but it does't work the import id this
<link rel="stylesheet" href="style/style.css">
and my file tructure is this:file structure, if i use the script tag it works so the ccs i've made work, i also tryied to use style.css instead of style/style.css, I don't know how to better describe the problem but I have to write a little to be able to post the question
CodePudding user response:
Assuming you're putting this in the head section it should work.
Try adding some obvious change to your css to see if it's linking for example:
body {
background-color: red;}
CodePudding user response:
I don't see in your directory listing where your html files are. But if they're not in the directory above "style", then you'll want to change your link to:
<link rel="stylesheet" href="/style/style.css">
i.e. add a slash before "style", so that rather expecting the directory to sit within the current directory of the html, you'll point to the style directory as being at the top level of the site.