Click to See Complete Forum and Search --> : CSS link not working, help needed fast


webmommee
08-03-2006, 12:00 PM
Dreamweaver creates the code when I choose link to external style sheet and creates the following code, linking to style sheet on my local PC.

<link href="../docdata/costest_style.css" rel="stylesheet" type="text/css">

I can preview fine in the browser

There's a copy of the stylesheet on my web server, but when I upload the file to my website, it doesn't recognize the stylesheet unless I change the path to the following (then it works fine):

<link href="file://///Cbo-gov/c$/mirror/hdrive/docdata/costest_style.css" rel="stylesheet" type="text/css">

Help, how can I make this work without changing the path, prior to uploading the document. Thanks a lot!

ray326
08-03-2006, 12:40 PM
What's the relationship between the page and the stylesheet locations? Is docdata/ off the root of the server? Does the file:/// URL turn into something else when the page is published?

KDLA
08-03-2006, 12:44 PM
Looks like you're uploading to files on a mirror site (http://en.wikipedia.org/wiki/Mirror_site), rather than the actual one. You might check with your web host to see why your site (or a portion thereof) has been moved to the mirror -- if you didn't know.

KDLA

webmommee
08-04-2006, 07:08 AM
Our system administrator told me to just make an absolute path to the style sheets. The root directory is www, I made a new folder (css), so the new path is <link href="http://www.cbo.gov/css/costest_style.css" rel="stylesheet" type="text/css">

Now everything works fine.

Thanks