Back to parent...

Dreamweaver & Flash (ahh ahhh) plus Web related Tutorials & Resources, HTML, CSS, PHP, Flash or whatever.
Post Reply
odog
Big Bird's nest fluffer
Posts: 168
Joined: January 6th, 2006, 8:58 am
Location: The Emerald Isle (Oirland)
Contact:

Back to parent...

Post by odog » February 17th, 2006, 10:27 am

Is it possible to link something in a parent folder/directory from a sub folder/directory.

For example, have a sub directory which uses the CSS and images held in the root directory.

I should really know this, but have never had reason to use it before.

Thanks in advance :wink: .
The sooner you fall behind, the more time you have to catch up.

Paul Stones
Ernie's rubber duckie
Ernie's rubber duckie
Posts: 283
Joined: January 6th, 2006, 11:00 pm
Location: Onanism zone

Post by Paul Stones » February 18th, 2006, 3:31 pm

Yes (assuming I understand your question!). Place

Code: Select all

../
in front of the link, and it moves back up a directory. For example, a page inside a "Gallery" directory could reference a header image in the parent folder using

Code: Select all

../header.jpg
To go up two directories, just string two examples of code together, eg

Code: Select all

../../
You can also go back down through directories after moving up, eg

Code: Select all

../../photos/landcapes.hill.jpg
Hope this helps.

odog
Big Bird's nest fluffer
Posts: 168
Joined: January 6th, 2006, 8:58 am
Location: The Emerald Isle (Oirland)
Contact:

Post by odog » February 20th, 2006, 9:05 am

Thanks Paul. Exactly what I was looking for :) .
The sooner you fall behind, the more time you have to catch up.

Post Reply