Editor not using my CSS files -...

User 603315 Photo


Registered User
938 posts

Nigel Thomas wrote:
Adam (and everyone else)

Thanks, I had not got my head around relative file locations - my mistake

Thanks for all the help and sorry to waste everyone's time, but at least I learnt something

Nigel
From a wet and windy UK

So everything is working now?
User 1948478 Photo


Senior Advisor
1,850 posts

Adam East wrote:
the ../ denotes the file is inside of a folder in the root directory.

For others who may read this thread, I think this needs to be clarified:

The notation "../" means 'move up one level in the directory hierarchy'.
Similarly, the notation "../../" means 'move up two levels in the directory hierarchy',
...and so on...

For example, say you use relative addressing in index.html, located here:
C:/dirlevel1/dirlevel2/dirlevel3/dirlevel4/index.html

the link "css/main.css" would then expand to:
C:/dirlevel1/dirlevel2/dirlevel3/dirlevel4/css/main.css

The link "../css/main.css" would expand to:
C:/dirlevel1/dirlevel2/dirlevel3/css/main.css

and the link "../../css/main.css" would expand to:
C:/dirlevel1/dirlevel2/css/main.css

...and none of them would be in the "root directory"! ;)




User 289442 Photo


Registered User
161 posts

@ Per

Bravo!!!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.