global applied stylesheet link on debian box

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-12-24T07:41:06Z Indexed on 2010/12/24 7:54 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

Hi there,

Having some trouble identifying what is wrong with my link to an external CSS stylesheet...

I am using a debian box to host some things... including a file i am accessing page.py which is located in /var/www/cgi-bin. I need this page to link to a css file which currently has the pathname /var/www/styles.css.

Now I know I could link as:

<link rel="stylesheet" href="**../styles.css**" type="text/css">

and the problem is solved but I would rather have a 'global' link, that I can use in other py files elsewhere in my filesystem and they will all point to /var/www/styles.css

The information I have searched suggests that

<link rel="stylesheet" href="**/var/www/styles.css**" type="text/css">

should work fine... but it doesn't.

I have tried multiple combinations of everything I know but it doesn't seem to link as I would expect.

Can anyone point me in the right direction?

© Stack Overflow or respective owner

Related posts about python

Related posts about html