Problem with CSS when linking it with HTML [duplicate]

0

Hello! Again I with a mega doubt (problem)

I want to link my style sheet (css) to my html, maybe they do not have the right permission to be linked. but they are different folders. One is inside the public_html folder and the other is out of this one but it's inside the Style folder, as you can see in the next image.

And here I put the console error:

    
asked by Alonso Sánchez 06.03.2018 в 08:14
source

1 answer

3

When you put / at the beginning you go to the root of the project and if you put the two points before ... you are leaving the project. Try one of the following

<link href="/Estilo/Style.css" .....>

or

<link href="..Estilo/Style.css" .....>

Also, all the files on the page (js, css, html, php, etc) you have to put them in the public_html folder, if you want inside you can create folders but always within public_html, because this is the folder that has the necessary permissions to load the page

    
answered by 06.03.2018 / 08:31
source