Displaying a picture from a different directory

Status
Not open for further replies.

static244

Solid State Member
Messages
20
Lets say i'm displaying a picture thats in a subdirectory of a folder.
I know i'm supposed to put the name of the subdirectory and a slash before the image name like this...

pic.jpg


What do I do if I want to refence a picture thats ina totally different directory?

For example:

dir.jpg



I want to have pic.jpg appear in source.html. How do I code that without coding the full url of the picture?

Thanks
static244
 
It'd be best to code the full URL, but if you really don't want to, you can use the .. file marker to go back a directory.

In your example, you would do the following to get pic.jpg.
Code:
[img]../Gallery/pic.jpg[/img]
 
Status
Not open for further replies.
Back
Top Bottom