CSS connect to the files

Who can help me out 😄 I can't get my CSS connected? I already tried ./, ../ .../ or even just / nothing works. I hope with the pictures everything is clear? So my CSS file is out of my 'head' folder TWT. Before I used the include function it works with only /CSS/main.css. But now that I use the include function, it doesn't work anymore 😦 PS. I use include for my head
9 Replies
Jochem
Jochem2y ago
Can you open your CSS in your browser? as in, go to https://yourcooldoma.in/CSS/main.css and have it show up?
Rianẍa
RianẍaOP2y ago
http://localhost/TWT/CSS/main.css I used this. And this work
Jochem
Jochem2y ago
href="/TWT/CSS/main.css" should work them
Gashy
Gashy2y ago
I think it might also be the ... But I think in certain environments on languages ./ isnt liked for file paths, i dont know if this is a html specific thing
Jochem
Jochem2y ago
yeah, ... is nothing. . is current dir, .. is one higher, ../.. is two higher
Rianẍa
RianẍaOP2y ago
Thank you! It works back! wow I've been struggling with this for a long time 😅 Thanks a lot
Jochem
Jochem2y ago
do you understand why it works? (and you're welcome, always glad to help 🙂)
Rianẍa
RianẍaOP2y ago
Yes I think so. When I see the issue now I understand
Jochem
Jochem2y ago
k, good 🙂
Want results from more Discord servers?
Add your server