0

New guy problem: i can not link my html file with mi css one, i've tried a lot of things but none of them worked. ¿Help, please?

I've tried putting the css file in a different folder, getting all the html files out of the html folder except the one i'm trying to link, but it just doesn't work.

6th Oct 2018, 5:37 AM
Tomas Prieto
Tomas Prieto - avatar
6 Réponses
+ 2
Its hard help you without know how you link the css file and the path of it... Try to put either on SAME directory, then inside html file, in head tag, put: <link rel="stylesheet" href="style.css" /> where style.css is the file name of your css file
6th Oct 2018, 5:54 AM
KrOW
KrOW - avatar
+ 1
Tomas Prieto Have you tried to put in same dir html and css files and put code like i writed (changing the css file name obliviously)?
6th Oct 2018, 6:09 AM
KrOW
KrOW - avatar
0
I link it like this (in head tag): <link rel= "stylesheet" href="css/juancarlas.css" /> i've tried that before but didn't worked, whatever info you need in order to help just tell me
6th Oct 2018, 6:07 AM
Tomas Prieto
Tomas Prieto - avatar
0
my css is: h1{ color:"green" (i've also tried putting green without the ("")) ; } p{ color:"red"; } it's simple because i made this one to try with another html file but with just a h1 word and a paragraph
6th Oct 2018, 6:11 AM
Tomas Prieto
Tomas Prieto - avatar
0
You have to remove the quotes like: color: red;
6th Oct 2018, 6:12 AM
KrOW
KrOW - avatar
0
i have tried that and i've also tried without the quote marks :(
6th Oct 2018, 6:14 AM
Tomas Prieto
Tomas Prieto - avatar