Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

external css not found

Posted on 2008-06-23
6
Medium Priority
?
210 Views
Last Modified: 2010-04-21
I am using an external css file in a PHP file with:

<link rel="stylesheet" type="text/css" href="bower.css" />

This works fine.  I want to move the styple sheet to a common area so that all in-house web pages can be consistent.  I moved the file to /var/www/res/bower.css and changed the link to this:

<link rel="stylesheet" type="text/css" href="/var/www/res/bower.css" />

The stylesheet has no effect now!  Does an external stylesheet have to be in the local directory?
0
Comment
Question by:NTNBower
[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
  • 3
  • 3
6 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 375 total points
ID: 21850056
>>  I moved the file to /var/www/res/bower.css
OK, but that is the "real" on the server. If your homepage is located at:
/var/www/index.html

then you should type:
<link rel="stylesheet" type="text/css" href="/res/bower.css" />
0
 

Author Comment

by:NTNBower
ID: 21850381
Of course.  As far as the web server is concerned the "root" is /var/www (LAMP on Linux)  Similarly it would be inetpub... on IIS.

Thanks.
0
 

Author Closing Comment

by:NTNBower
ID: 31469928
Thanks
0
Independent Software Vendors: 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!

 
LVL 82

Expert Comment

by:hielo
ID: 21850446
What's with the grade?
0
 

Author Comment

by:NTNBower
ID: 21850595
hielo,

I gave you a good rating.  It was a pretty basic question.  I thought good was good.
0
 
LVL 82

Expert Comment

by:hielo
ID: 21850984
>>  It was a pretty basic question
IF you ask "What is 1+1" or "What is the derivative of ln(x)", if the answer is correct for either, then there is no reason to base your grade based on the complexity of the question. The maximum points for a question is tied to the letter grade. IF you offer 125 pts, the point distribution is:
A: 125 x 4 = 500
B: 125 x 3 = 350
C: 125 x 2 = 250
D: 125 x 1 = 125
So, if you don't give an A (for an asnwer that should have been an A), for every letter grade away from A, the expert would "loose" 125pts.

>> I thought good was good
Excellent is always better than good.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

660 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