Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

LOCAL Path for CSS not working

Posted on 2005-05-10
7
Medium Priority
?
493 Views
Last Modified: 2012-06-21
I have the following :

<link rel="stylesheet" href="=C:\Documents and Settings\mjohns\Desktop\EA Desktop\EA Desktop\res\ead.css" type="text/css" />

The css is there but the page isn't reading it? Am I missing something?????
0
Comment
Question by:894359
  • 4
  • 3
7 Comments
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 2000 total points
ID: 13973985
try this:
<link rel="stylesheet" href="file:///C:/Documents%20and%20Settings/mjohns/Desktop/EA%20Desktop/EA%20Desktop/res/ead.css" type="text/css" />
0
 

Author Comment

by:894359
ID: 13974023
WHy is that????
0
 

Author Comment

by:894359
ID: 13974046
It did work and I understand the URL rncoding part but why the  file:///
0
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.

 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 13974047
because the href is expecting a url.
and what i posted is the url to the local css file, what you used before is a windows path, and that does not work.
0
 

Author Comment

by:894359
ID: 13974057
Thanks... FYI... I didn't need the url encoding of the spaces!
Thanks again!
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 13974069
"file://" is part of the url specification for an absolute url to a local file.
if you don't include either "file://" or "http://", then the url is relative.
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 13974074
> FYI... I didn't need the url encoding of the spaces!
i know it's not required most of the times, but it's good practice to use it.
0

Featured Post

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!

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 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