-
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?
-
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" ....... />