Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    8
    Member #
    12797
    Here is my example.

    If I have a folder called Main where all my files are, and within this another folder called Folder One.

    If I am editing a file in Folder One and I wish to make a link to a file n the Main folder how do I move back up a directory?

    if I haven't explained this clearly let me know and i will try again.

    Thanks

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    You have two ways to reference files ... absolute, or relative.

    Absolute:

    You reference them with your whole domain name and path, example:
    <img src="http://www.mysite.com/main/myphoto.jpg">


    Relative:

    You use the path switching method to move back or forward ...
    In your case, you would be moving back one directory:

    <img src="../myphoto.jpg">

    So, relative to your current location, you have:

    ../ means to go back one directory.
    ../../ goes back two directories.

    ./ stay in the same directory.

    / go ahead one directory.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:56 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com