On Sat, 1 May 2004 19:28:13 -0700,
"Jorntk" <jo****@yahoo.com> posted:
I have css in a folder name css. so how can this .css file read a pics file
from another folder eg, pics/a.jpg.
Both css folder and pics folder are located in a folder named project.
I know i can call the pic by url(project/pic/a.jpg)
However, its very inconveninet when I change the folder name eg from project
to project10.
Two ways:
1. Use relative links. Back out of a folder using ../ into the parent, the
append the new name onto the end of it.
e.g. Given some files located at:
/an/example/here.test
/an/other/example.test
The first one (here.test) could refer to the second (example.test)
with a link like "../other/example.test".
2. Use absolute links. All links include the full path to the destination,
starting with a slash / to indicate the root.
e.g. Given those same files as before, they'd each have links using the
full path to the other. The first would refer to the second with a link
like "/an/other/example.test".
Depending on what you mean by changing a folder name, you're in for a hard
time. If you rename things, you've got to make quite a lot of changes on
anything else that referred to it.
--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.
This message was sent without a virus, please delete some files yourself.