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.
6 Antworten
+ 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
+ 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)?
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
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
0
You have to remove the quotes like:
color: red;
0
i have tried that and i've also tried without the quote marks :(