Solved

PATH AND APPLYING CSS PROBLEM  IN PHP / LINUX

Posted on 2004-04-16
5
165 Views
Last Modified: 2010-04-22
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
Comment
Question by:santoshravi
5 Comments
 
LVL 9

Expert Comment

by:gtkfreak
ID: 10844572
<LINK REL=stylesheet HREF=../css/stylesheet.css TYPE="text/css">
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 125 total points
ID: 10846578
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
 
LVL 8

Expert Comment

by:da99rmd
ID: 10858354
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question