Click to See Complete Forum and Search --> : Localhost+stylesheets


IDontKnow
12-18-2002, 02:34 AM
I started creating a site on my D drive (partitioned drive) and my link to my stylesheet worked. I found phptriad which simulates a server so that I could test my scripts locally.

I moved everything to my C drive under htdocs (everything is in the same directories) and now my stylesheets don't work.

Even when I turn on Apache and just click on the file, it doesn't work. I tried changing the link to "localhost/styles/" to no avail.

Does anyone have a clue why this wouldn't be working anymore? I am totally lost here and would appreciate any feedback.

Thanks millions in advance!

Mada

dalecosp
12-18-2002, 10:59 AM
I just stick the stylesheet in the folder with the page(s) and call thusly...

<style type= "text/css">
<!--
@import "stylesheet.css";
-->
</style>

I realize that a linked sheet would be more convenient when you are a few dirs down the tree, but have never tried it. Of course, I've never had any problems finding the sheet, either...

You might try calling the stylesheet with an absolute path, i.e. "C:\path\to\stylesheet.css" or a protocol dependent path "http://localhost/path/to/style/sheet.css"

HTH,

IDontKnow
12-18-2002, 12:01 PM
Thanks for responding. I think that may work, let me try...