Link to home
Start Free TrialLog in
Avatar of ianinspain
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.css" 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
Avatar of Fahdmurtaza
Fahdmurtaza
Flag of Pakistan image

I would ask why are you doing this all and kindly make your question abit clear and about the server and the scripting language and the reason for trailing slash.
Regards,
Fahd Murtaza
Avatar of painted
painted

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
ASKER CERTIFIED SOLUTION
Avatar of painted
painted

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
You should reply to our comments sothat we can easily help!
Avatar of ianinspain

ASKER

thanks painted... that was it..

cheers