+ 1

Link Css

Hello, I try to attach the css to my html by putting "<Link rel...." but it doesn’t work :(

3rd May 2019, 11:00 AM
Marie Capelle
Marie Capelle - avatar
13 Réponses
+ 11
Marie Capelle for working of external css linking in PC you must know two thing 1) if the css file is in same folder in which your html file is present. Then to link css you just need to include the css file name and extension in href like this <link rel="stylesheet" href="file name.css> 2) if file is in other folder then in href include the path of that file like if it is Folder d where it is in new folder where an folder named project where it is located then you should give path like this href="D:/new folder/project/file.css
3rd May 2019, 11:28 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 14
Marie Capelle then simply use this for connecting the css file <link rel="stylesheet" href="file name.css>
3rd May 2019, 11:55 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
Please provide the code. It will be helpful for us to answer https://www.sololearn.com/discuss/1316935/?ref=app
3rd May 2019, 11:06 AM
Seniru
Seniru - avatar
+ 3
Satnam Singh I have seen many codes using link tag 😕
3rd May 2019, 11:19 AM
Seniru
Seniru - avatar
+ 3
Marie Capelle make sure you have a file called css.css in your working directory. The file that you provided to the link doesn't work anyway. Those effects came from the stylesheet in CSS tab
3rd May 2019, 11:25 AM
Seniru
Seniru - avatar
+ 2
im so sorry, im new and not good english ^^
3rd May 2019, 11:23 AM
Marie Capelle
Marie Capelle - avatar
+ 1
I've cupy my code of sublime text (i've save like that "css.css") but in sololearn its always attach no? (sry for ly english)
3rd May 2019, 11:28 AM
Marie Capelle
Marie Capelle - avatar
+ 1
Gawen steasy, they are on same folder..
3rd May 2019, 11:43 AM
Marie Capelle
Marie Capelle - avatar
0
Link or link its the same ^^
3rd May 2019, 11:14 AM
Marie Capelle
Marie Capelle - avatar
0
thanks for your answer :)
3rd May 2019, 11:15 AM
Marie Capelle
Marie Capelle - avatar
0
Well... in sololearn its ok, https://code.sololearn.com/Wsb85gRdk5O3/# but in my text edit (sublime text) it doesnt work
3rd May 2019, 11:21 AM
Marie Capelle
Marie Capelle - avatar