• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

PATH AND APPLYING CSS PROBLEM IN PHP / LINUX

Hi,
I am facing a problem to applying a .css in linux enviroment.
On server we have configure a directory but we are storing a new directory one level up of the mapped path. So, how can we apply the .css from the directory which is one level above the mapped one?
thank you.
0
santoshravi
Asked:
santoshravi
1 Solution
 
gtkfreakCommented:
<LINK REL=stylesheet HREF=../css/stylesheet.css TYPE="text/css">
0
 
Karl Heinz KremerCommented:
But you could also use an absolute path:

<LINK REL="stylesheet" HREF="/css/stylesheet.css" TYPE="text/css">
(you need to adjust the path an the name of the style sheet)

If your CSS file is really one level up, the correct statement would be (again, you need to use the correct file name):

<LINK REL="stylesheet" HREF="../stylesheet.css" TYPE="text/css">

And, you should out the strings into quotes.



0
 
da99rmdCommented:
Ill vote for relative href s, this is very nice if you move the entire dir tree to an other location.

/Rob
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now