0

Pathway image

I would like to link style.css to my to my html page ATC1O.html. I added more periods after 'href="' but that is not working. Is there a way to link this at all?

<link rel="stylesheet" href="../css/style.css">

3 Answers 3

1

Try "../../css/style.css" or "../../../css/style.css".

It's kind of hard to know how deep ATC10.html is from your image. All I know is that its not the direct parent.

Sign up to request clarification or add additional context in comments.

1 Comment

../../../css/style.css worked thank you i was stuck on that for an hour. thank you!
1

try the following:

<link rel="stylesheet" href="./css/style.css">

more info here

Comments

0
../../../css/style.css

./ represents current directory, so this is dance

../ represents the parent directory, so this will be art

../../ represents Parent's parent directory, so document

../../../ represents Parent's parent's parent directory, which you have not shown in the image, but it contains the "document" the "css" directory. So we go into it and then choose the /css/style.css file.

Hope It isn't confusing!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.