Image folder problem

liunx

Guest
Ok, I've been trying to make this site, and I was keeping everything in folders to keep it all tidy.<br />
<br />
So there was an image folder a cinema folder, ect<br />
<br />
so it was like this<br />
<br />
Website<br />
<br />
Images<br />
Cinemas<br />
and so on and so on, I keep the cinema html files in the cinema folder and the images in the image folder.<br />
<br />
But the problem is the images aren't displayed by the files in the cinema folder.<br />
<br />
I understand why, but is there any way to fix this without lumping all this stuff into one messy folder?<br />
<br />
Thanks.<!--content-->um... im not sure if i understand your question.<br />
<br />
cant you just do src=http://www.htmlforums.com/archive/index.php/"images/whatever.gif" ?<!--content-->I have all the html files in seperate folders, to keep things tidy.<br />
<br />
anyway the problem is, I can't access the images folder, because it is behind it.<br />
Like this<br />
<br />
Cinema (html file in image folder)<br />
Image folder (stuff in image folder)<br />
<br />
So how do I get the html file in the cinema folder to go back and then into the image folder. <br />
<br />
Hope that made sense<!--content-->i've seen this problem before, but forgot how to fix it.<br />
<br />
can you just use an HTTP link, for example <br />
<a href=http://www.htmlforums.com/archive/index.php/"http://yoursite.com/whatever.html"><br />
?<!--content-->There is a post in HTML LAYOUT that i did about 2 months ago, you should try & find it for more info, but anyway i'll give you a few examples:<br />
<br />
if you need to go back 1 dir use ' ../ '<br />
for 2 dir's back ' ../../ ' and so on...<br />
<br />
if you need the sub dir in that dir use ' subname ' , where ' subname ' is the name of your required dir<br />
for 2 sub's ahead ' sub1/sub2 ' and so on...<br />
<br />
That should help you a little... jaeman;)<!--content-->You have two folders in your root, /images and /cinema. If you have a HTML file in the root, you can call an image by src=http://www.htmlforums.com/archive/index.php/"images/whatever.gif". But when you're in the /cinema subdirectory, you must use src=http://www.htmlforums.com/archive/index.php/"../images/whatever.gif". The dots are there to tell that /images is in the parent directory, not in the current directory.<!--content-->Thank you Thank you Thank you, it worked.<br />
<br />
:D<!--content-->
 
Back
Top