ianinspain
asked on
link to stylesheet inserts / at beginning.
Hi,
Just been playing around with dreamweaver and everytime i LINK to a style sheet it put a trailing forward slash i.e.
<link href="/stylesheets/main.cs s" rel="stylesheet" type="text/css" />
the problem is i am using a test server here and the / (root) is not the same site i.e. Many different virual directories.
It should read <link href="stylesheets/main.css " rel="stylesheet" type="text/css" />
Now although very easy to edit in the code, just wondered if i am doing something wrong???
Ian
Just been playing around with dreamweaver and everytime i LINK to a style sheet it put a trailing forward slash i.e.
<link href="/stylesheets/main.cs
the problem is i am using a test server here and the / (root) is not the same site i.e. Many different virual directories.
It should read <link href="stylesheets/main.css
Now although very easy to edit in the code, just wondered if i am doing something wrong???
Ian
Hi Ian,
Is your stylesheet folder located inside the directory in which you are working? If not try moving it there. I think that will clear up your problem.
painted
Is your stylesheet folder located inside the directory in which you are working? If not try moving it there. I think that will clear up your problem.
painted
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
there is a very simple thing about that problem. If you have the stylesheet folder within the root directory, then all you can do is to make your code like
<link href="stylesheets/main.css " rel="stylesheet" type="text/css">
Once delete the linked style sheet from right click menu options in the dreamweaver and then relink it. It would work fine.Hope it will help.
Regards,
Fahd Murtaza
<link href="stylesheets/main.css
Once delete the linked style sheet from right click menu options in the dreamweaver and then relink it. It would work fine.Hope it will help.
Regards,
Fahd Murtaza
You should reply to our comments sothat we can easily help!
ASKER
thanks painted... that was it..
cheers
cheers
Regards,
Fahd Murtaza