Solved

PATH AND APPLYING CSS PROBLEM  IN PHP / LINUX

Posted on 2004-04-16
5
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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