Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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