Absolute or relative path

jp50

New Member
Hi to all,
I'm new to the forum and after a quick , unsuccesful search about my problem I decided to ask you guys to help me.Using absolute path for the images like
/img_folder/img.png
works fine in IE and Mozilla but not in Safari. If I change the absolute path in
C:/site-root/mysite/img_folder/img.png
then it works in IE,Safari but not in Mozilla.The question is: is there a way for an absolute path that is supported by the major browsers?
Thanks
 

LouTheDesigner

New Member
Are you only testing the site locally?

Once is it uploaded, you can reference the image using your site's address.

<img src="http://www.yourdomain.com/img_folder/logo.gif" />

Problem solved, sort of.

also, have you tried using alt tags to see if your using the proper paths?
 
Last edited:

jp50

New Member
Thanks Lou the designer,I tried wiith the site url and it works fine.But I still wonder why the root path doesn't work,since I'm hosting this web site on my computer.
Thanks again
 

wachtn

New Member
If your using windows the local problems could be your '/'

Windows uses '\'
Linux/unux (most website servers) use '/'
 
Top