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
Jochem12mo 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ẍa12mo ago
http://localhost/TWT/CSS/main.css I used this. And this work
Jochem
Jochem12mo ago
href="/TWT/CSS/main.css" should work them
Gashy
Gashy12mo 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
Jochem12mo ago
yeah, ... is nothing. . is current dir, .. is one higher, ../.. is two higher
Rianẍa
Rianẍa12mo ago
Thank you! It works back! wow I've been struggling with this for a long time 😅 Thanks a lot
Jochem
Jochem12mo ago
do you understand why it works? (and you're welcome, always glad to help 🙂)
Rianẍa
Rianẍa12mo ago
Yes I think so. When I see the issue now I understand
Jochem
Jochem12mo ago
k, good 🙂