Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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