...

View Full Version : href problem!!



frankiefish
10-03-2007, 10: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!

i.e

<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.

Thanks

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

effpeetee
10-04-2007, 03:37 PM
You didn't move the template out of its subdirectory, did you?
http://codepunk.hardwar.org.uk/bhtmlx12.htm

This may explain a thing or two.

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


Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum