Can somebody please explain to me how i can link my css file to my html file when i am using the sololearn code playground | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Can somebody please explain to me how i can link my css file to my html file when i am using the sololearn code playground

link css to html

8th Jul 2017, 1:08 PM
LekingšŸ‘‘
LekingšŸ‘‘ - avatar
3 Respostas
+ 2
If you are talking of the css tab in code playground web project, it is already silently linked (as the JS tab) to the html tab as is was linked/embeded at the very end of <head> section... If you are talking about 'real' external css file, you need to host them anywhere on web, and use the <link> tag with an absolute url path... but it's as well to copy them embeded in <style> tags or in css tab (and more user friendly to give simplest accessible css source than opening the external css file by another less obvious way than read it in sololearn ;)
8th Jul 2017, 3:21 PM
visph
visph - avatar
+ 1
You are not going to be able to link a file on here. Your best bet is to embed your CSS into the header of your HTML(see below). <head> <style> .myclass{text-align:center;} </style> </head>
8th Jul 2017, 1:20 PM
Jim Tully
Jim Tully - avatar
0
thanksšŸ‘
8th Jul 2017, 1:21 PM
LekingšŸ‘‘
LekingšŸ‘‘ - avatar