more on relative vs absolute paths
Maybe this is not a problem with other HTML editors, , if not please let me know, as I'm still using the old HOMESITE editor.
I like to use relative paths, mainly so I can test my site locally with browsers on my file system, and also because absolute paths to graphics has in one instance caused my hosting company a lot of grief (I'll skip the details unless someone is interested).
So when I'm developing, it would really be nice if I could still use the "root" (/) as a starting point. That way, for example,, wherever a page ends up in a directory tree, a <link> tag like this will always work...
<link rel="stylesheet" type = "text/css" href="/styles/myStyles.css" >
But of course that won't work when testing on my home computer. Is there a workaround for this? Is there a way to tell Homesite that when interpreting links, "/" should refer to the project root? If not, would Coffeecup be able to do this? I don't think I can use "./" as a substitute, can I?
* * *
... Second Star to the Right, and Straight on Till Morning!
* * *
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread