http://www.perlmonks.org?node_id=872096


in reply to PM Stylesheet on local filesystem? WORKS!

If you look at the source for a PM page after adding you external stylesheet, you'll see:

<link rel="stylesheet" href='file:///C:/Work/DATA/PM.css' type="text/c +ss" />

So, the short answer is "give up!".

The longer answer is that will be looking for that resource on the PM webserver, not on your PC. Ignore this - I got the client/server relationship back-to-front.

-- Ken

Replies are listed 'Best First'.
Re^2: PM Stylesheet on local filesystem?
by roboticus (Chancellor) on Nov 18, 2010 at 01:45 UTC

    OK, I may have to give up.

    But I don't understand: why is it a problem that the page source contains that link? Doesn't that link instruct the browser to read the style sheet from the local drive? Googling about (Wikipedia, RFC 396, ...) leads me to believe that file:///C:/Work/Data is a valid URI, so I would expect that firefox would use it without complaint.

    I realize no-one else would be able to use my stylesheet, but that's not an issue for me so long as I can use it!

    ...roboticus

      I wasn't suggesting the URI was invalid - it looks fine to me.

      I also wasn't suggesting the link showing up in the page source was a problem. That was really just intended to indicate that your change had done something and was in response to what you'd written regarding "didn't work".

      I did, however, get the client/server relationship back-to-front, so my apologies for that.

      -- Ken

Re^2: PM Stylesheet on local filesystem?
by Anonymous Monk on Nov 18, 2010 at 01:45 UTC
    The longer answer is that will be looking for that resource on the PM webserver, not on your PC.

    except that it won't, thats just silly