|
-
Jul 11th, 2002, 02:11 AM
#1
Thread Starter
Fanatic Member
Relative file paths
Hi,
I have a document in the root directory of my web page. I have a layout defined that contains a relative url to this document. However, if I apply the style sheet to a document in sub folders, the relative url does not point to the document anymore. How, using relative url's, can I reference documents in the root directory regardless of the depth of the current document?
-
Jul 11th, 2002, 08:14 AM
#2
Fanatic Member
use ../ to go back a directory.
Example:
say your root folder has style.css but the file I am viewing is root/files/home/index.html
You would have to link to the style css (relatively) like so:
<link href="../../style.css" ....... />
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|