|
Posted by LAshooter on 07/18/05 05:23
"mark" <mark@something.com> wrote in message
news:dbeltg$8l3$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>I am designing a website at the moment and looking at the difference
>between relative and absolute url links which is driving me crazy! I would
>like to use relative paths, but it is proving very restrictive as to how I
>design the file structure when it comes to including files.
<SNIP>
> Can anybody share some tips on what they do to overcome what must be a
> very common problem? Is absolute paths the answer so instead of calling
> ../images/image.gif from the include file, I would call
> /images/image1.gif?
I prefer to use root relative paths. Rather than linking to
.../images/image.gif as per your example, I would link to /images/image.gif
(assuming /images is in the web root).
This will NOT work if you are generating HTML emails, by the way! <learned
THAT lesson the hard way> For that type of coding, you have to use full
paths to the images (including http://www...)
Wm
Navigation:
[Reply to this message]
|