image source referencing (newbie)

Results 1 to 4 of 4

Thread: image source referencing (newbie)

  1. #1
    Ian B Guest

    Default image source referencing (newbie)

    Hi <BR><BR>I have put all of my images into subfolders under a single images folder under the web root folder. How can I reference them in the image src from the root folder <BR><BR>Thank<BR><BR>ib

  2. #2
    Join Date
    Dec 1969

    Default RE: image source referencing (newbie)

    It is depend upon from which folder you are calling the files. If you are calling them from the root folder then it should be like this<BR><BR>&#060;img src="images/whatever the subimage folder name/ file name"&#062;<BR><BR>If you are calling from any of the subfolders then it should be <BR><BR>&#060;img src="../images/etc.,..."&#062;

  3. #3 Guest

    Default Wrong

    In either case you would use root-absolute addressing:<BR><BR>&#060;img src="/images/whatever the subimage folder name/ file name"&#062;<BR><BR>Then you can move the file that is referencing any images in your image folders, and it will still work. If you follow vani&#039;s suggestion you would have to change to image source if you move the file.

  4. #4
    Ian b Guest

    Default Thanks to both of you <eop>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts