View Full Version : href problem!!

10-03-2007, 11:26 PM
I have a problem i'm hoping someone can help me with, I am using DreamWeaver 8.

I have a template saved from which I was creating pages from, which used to work fine:thumbsup: But now everytime I create a new page from the template the css is not applying when previewed.

The code from the template is shown below - which previews fine with the CSS style sheet applied.

<link rel="stylesheet" href="../2col_leftNav.css" type="text/css" />
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<style type="text/css">

Now when i create a page from this template the code shows this

<link rel="stylesheet" href="/2col_leftNav.css" type="text/css" />

for some reason the href now has a "/" in which is stopping the css being applied. (the pages created from the template which worked fine before i had this problem do not have the "/" after href!


<link rel="stylesheet" href="2col_leftNav.css" type="text/css" /> <---- the css style sheet works fine with this code

Can anyone tell me how i can stop href from adding this "/" everytime i create a new page from the template? remember that the code on the page created from the template is locked!

Sorry if i sound a bit simple, im very new to coding.


10-04-2007, 03:35 PM
You didn't move the template out of its subdirectory, did you?

10-04-2007, 04:37 PM
You didn't move the template out of its subdirectory, did you?

This may explain a thing or two.

The "/" is used sometimes to move a level in addressing.