Solved

PATH AND APPLYING CSS PROBLEM  IN PHP / LINUX

Posted on 2004-04-16
5
163 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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