Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

external css not found

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
NTNBower
Asked:
NTNBower
  • 3
  • 3
1 Solution
 
hieloCommented:
>>  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
 
NTNBowerAuthor Commented:
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
 
NTNBowerAuthor Commented:
Thanks
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
hieloCommented:
What's with the grade?
0
 
NTNBowerAuthor Commented:
hielo,

I gave you a good rating.  It was a pretty basic question.  I thought good was good.
0
 
hieloCommented:
>>  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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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